Problems running Watcher on DevStack

Christian Rohmann christian.rohmann at inovex.de
Tue Apr 5 09:56:58 UTC 2022


Hello there,
​
I am trying to setup devstack which is running Watcher.

But I am running always into problems with setup not finishing and 
throwing errors (see below).
To clarify: I am trying to setup the devstack with multiple nodes (three 
nodes to be exactly, one control/compute and two compute) following the 
instructions at
https://docs.openstack.org/watcher/latest/contributor/devstack.html 
which leads to this configuration
​
​
control / first compute node:

> [[local|localrc]]
> ADMIN_PASSWORD="<password>"
> DATABASE_PASSWORD=$ADMIN_PASSWORD
> RABBIT_PASSWORD=$ADMIN_PASSWORD
> SERVICE_PASSWORD=$ADMIN_PASSWORD
> SERVICE_HOST="<ip of the control node>"
> HOST_IP="<ip of host>"
> FIXED_RANGE="10.4.128.0/20"
> FLOATING_RANGE="subnet range"
>> DEVSTACK_RELEASE="stable/yoga"
>> LOGFILE=/opt/stack/logs/stack.sh.log
> LOGDAYS=7
> LOG_COLOR=False
>> enable_plugin watcher https://opendev.org/openstack/watcher 
> $DEVSTACK_RELEASE
>> enable_plugin watcher-dashboard 
> https://opendev.org/openstack/watcher-dashboard $DEVSTACK_RELEASE
>> enable_plugin ceilometer https://opendev.org/openstack/ceilometer.git 
> $DEVSTACK_RELEASE
> CEILOMETER_BACKEND=gnocchi
>> enable_service ceilometer-api
> enable_service ceilometer-acompute
>> enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi
>> # OpenStack Telemetry (Ceilometer) Alarming
> # enable_plugin aodh https://opendev.org/openstack/aodh $DEVSTACK_RELEASE
>> # I did not use the panko project which is mentioned in the 
> documentation because it is deprecated
>> [[post-config|$NOVA_CONF]]
> [DEFAULT]
> compute_monitors=cpu.virt_driver
> [scheduler]
> discover_hosts_in_cells_interval=2

​

​
additional compute node(s):

> [[local|localrc]]
> HOST_IP="<host ip>"
> FIXED_RANGE=10.4.128.0/20
> FLOATING_RANGE="<floating range"
> ADMIN_PASSWORD="<password>"
> DATABASE_PASSWORD=$ADMIN_PASSWORD
> RABBIT_PASSWORD=$ADMIN_PASSWORD
> SERVICE_PASSWORD=$ADMIN_PASSWORD
> DATABASE_TYPE=mysql
> SERVICE_HOST="<ip of control node>"
> MYSQL_HOST=$SERVICE_HOST
> RABBIT_HOST=$SERVICE_HOST
> GLANCE_HOSTPORT=$SERVICE_HOST:9292
> Q_HOST=$SERVICE_HOST
> OVN_SB_REMOTE=tcp:$SERVICE_HOST:6642
> disable_all_services
> ENABLED_SERVICES=n-cpu,placement-client,ovn-controller,q-ovn-metadata-agent
> NOVA_VNC_ENABLED=True
> NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_lite.html"
> VNCSERVER_LISTEN=$HOST_IP
> VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN
>> DEVSTACK_RELEASE="stable/yoga"
>> LOGFILE=/opt/stack/logs/stack.sh.log
> LOGDAYS=7
> LOG_COLOR=False
>> enable_plugin ceilometer https://opendev.org/openstack/ceilometer 
> $DEVSTACK_RELEASE
> disable_service ceilometer-acentral
> disable_service ceilometer-collector
> disable_service ceilometer-api
>> [[post-config|$NOVA_CONF]]
> [DEFAULT]
> compute_monitors=cpu.virt_driver

​
​
In addition I have tried to use the configuration that can be found in 
the repository of the watcher-project at 
https://opendev.org/openstack/watcher/src/branch/master/devstack.
​The error is always the same with setup.sh ending in:
​
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:244 
> :   cp /opt/stack/ceilometer/etc/ceilometer/polling_all.yaml 
> /etc/ceilometer/polling.yaml
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:246 
> :   cp 
> /opt/stack/ceilometer/ceilometer/pipeline/data/event_definitions.yaml 
> /opt/stack/ceilometer/ceilometer/pipeline/data/event_pipeline.yaml 
> /opt/stack/ceilometer/ceilometer/pipeline/data/pipeline.yaml 
> /etc/ceilometer
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:248 
> :   '[' '' ']'
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:251 
> :   '[' False == True ']'
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:259 
> :   iniset /etc/ceilometer/ceilometer.conf service_credentials 
> auth_type password
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:260 
> :   iniset /etc/ceilometer/ceilometer.conf service_credentials 
> user_domain_id default
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:261 
> :   iniset /etc/ceilometer/ceilometer.conf service_credentials 
> project_domain_id default
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:262 
> :   iniset /etc/ceilometer/ceilometer.conf service_credentials 
> project_name service
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:263 
> :   iniset /etc/ceilometer/ceilometer.conf service_credentials 
> username ceilometer
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:264 
> :   iniset /etc/ceilometer/ceilometer.conf service_credentials 
> password <password>
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:265 
> :   iniset /etc/ceilometer/ceilometer.conf service_credentials 
> region_name RegionOne
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:266 
> :   iniset /etc/ceilometer/ceilometer.conf service_credentials 
> auth_url http://192.168.0.100/identity
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:268 
> :   configure_auth_token_middleware /etc/ceilometer/ceilometer.conf 
> ceilometer /var/cache/ceilometer
> ++ lib/keystone:configure_auth_token_middleware:467 :   echo 'WARNING: 
> configure_auth_token_middleware is deprecated, use 
> configure_keystone_authtoken_middleware instead'
> WARNING: configure_auth_token_middleware is deprecated, use 
> configure_keystone_authtoken_middleware instead
> ++ lib/keystone:configure_auth_token_middleware:468 : 
> configure_keystone_authtoken_middleware 
> /etc/ceilometer/ceilometer.conf ceilometer
> ++ lib/keystone:configure_keystone_authtoken_middleware:447 : local 
> conf_file=/etc/ceilometer/ceilometer.conf
> ++ lib/keystone:configure_keystone_authtoken_middleware:448 : local 
> admin_user=ceilometer
> ++ lib/keystone:configure_keystone_authtoken_middleware:449 : local 
> section=keystone_authtoken
> ++ lib/keystone:configure_keystone_authtoken_middleware:451 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken auth_type password
> ++ lib/keystone:configure_keystone_authtoken_middleware:452 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken interface public
> ++ lib/keystone:configure_keystone_authtoken_middleware:453 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken auth_url 
> http://192.168.0.100/identity
> ++ lib/keystone:configure_keystone_authtoken_middleware:454 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken username ceilometer
> ++ lib/keystone:configure_keystone_authtoken_middleware:455 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken password <password>
> ++ lib/keystone:configure_keystone_authtoken_middleware:456 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken user_domain_name 
> Default
> ++ lib/keystone:configure_keystone_authtoken_middleware:457 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken project_name service
> ++ lib/keystone:configure_keystone_authtoken_middleware:458 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken project_domain_name 
> Default
> ++ lib/keystone:configure_keystone_authtoken_middleware:460 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken cafile 
> /opt/stack/data/ca-bundle.pem
> ++ lib/keystone:configure_keystone_authtoken_middleware:461 : iniset 
> /etc/ceilometer/ceilometer.conf keystone_authtoken memcached_servers 
> localhost:11211
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:270 
> :   [[ libvirt = \v\s\p\h\e\r\e ]]
> ++ /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:277 
> :   _ceilometer_configure_storage_backend
> ++ 
> /opt/stack/ceilometer/devstack/plugin.sh:_ceilometer_configure_storage_backend:208 
> :   '[' gnocchi = none ']'
> ++ 
> /opt/stack/ceilometer/devstack/plugin.sh:_ceilometer_configure_storage_backend:210 
> :   '[' gnocchi = gnocchi ']'
> ++ 
> /opt/stack/ceilometer/devstack/plugin.sh:_ceilometer_configure_storage_backend:211 
> :   sed -i 
> 's/gnocchi:\/\//gnocchi:\/\/?archive_policy=ceilometer-low\&filter_project=gnocchi_swift/' 
> /etc/ceilometer/event_pipeline.yaml /etc/ceilometer/pipeline.yaml
> ++ 
> /opt/stack/ceilometer/devstack/plugin.sh:_ceilometer_configure_storage_backend:212 
> :   [[ ,watcher,watcher-dashboard,ceilometer,gnocchi =~ gnocchi ]]
> + /opt/stack/ceilometer/devstack/plugin.sh:configure_ceilometer:1 :   
> exit_trap

​

What am I missing? Any configuration parameter?
​

Thanks in advance


Christian




More information about the openstack-discuss mailing list