centos-source-fluentd:4.0.0 and cinder api keep restarting

Bug #1728916 reported by Tomas Pipot
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Invalid
Undecided
Unassigned

Bug Description

Hello,
I'm trying to deploy openstack on centos7.4 servers by kolla-ansible. Container kolla/centos-source-fluentd:4.0.0 and kolla/centos-source-cinder-api:4.0.0 keep restarting.

kolla/centos-source-fluentd:4.0.0:
docker logs efb5f6e28314

KeyError: 'getpwnam(): name not found: fluentd'
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting file /etc/fluentd/fluent.conf
INFO:__main__:Coping file from /var/lib/kolla/config_files/td-agent.conf to /etc/fluentd/fluent.conf
ERROR:__main__:Unexpected error:
Traceback (most recent call last):
  File "/usr/local/bin/kolla_set_configs", line 412, in <module>
    main()
  File "/usr/local/bin/kolla_set_configs", line 406, in main
    execute_config_strategy(config)
  File "/usr/local/bin/kolla_set_configs", line 373, in execute_config_strategy
    copy_config(config)
  File "/usr/local/bin/kolla_set_configs", line 328, in copy_config
    config_file.copy()
  File "/usr/local/bin/kolla_set_configs", line 141, in copy
    self._copy_file(source, dest)
  File "/usr/local/bin/kolla_set_configs", line 103, in _copy_file
    self._set_permission(dest)
  File "/usr/local/bin/kolla_set_configs", line 106, in _set_permission
    user = pwd.getpwnam(self.owner)
KeyError: 'getpwnam(): name not found: fluentd'

kolla/centos-source-cinder-api:4.0.0
docker logs 3448ca05f2e7

Running command: 'httpd -DFOREGROUND'
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ml002.cezdata.corp. Set the 'ServerName' directive globally to suppress this message
(13)Permission denied: AH00058: Error retrieving pid file /run/httpd/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting file /etc/cinder/cinder.conf
INFO:__main__:Coping file from /var/lib/kolla/config_files/cinder.conf to /etc/cinder/cinder.conf
INFO:__main__:Setting file /etc/cinder/cinder.conf owner to cinder:cinder
INFO:__main__:Setting file /etc/cinder/cinder.conf permission to 0600
INFO:__main__:Deleting file /etc/httpd/conf.d/cinder-wsgi.conf
INFO:__main__:Coping file from /var/lib/kolla/config_files/cinder-wsgi.conf to /etc/httpd/conf.d/cinder-wsgi.conf
INFO:__main__:Setting file /etc/httpd/conf.d/cinder-wsgi.conf owner to cinder:cinder
INFO:__main__:Setting file /etc/httpd/conf.d/cinder-wsgi.conf permission to 0600
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/lib/cinder
INFO:__main__:Setting permission for /var/log/kolla/cinder
INFO:__main__:Setting permission for /var/log/kolla/cinder/cinder-scheduler.log
INFO:__main__:Setting permission for /var/log/kolla/cinder/cinder-manage.log

Changed in kolla-ansible:
status: New → Confirmed
Revision history for this message
Tomas Pipot (tommycz) wrote :

Another errors in fluentd:
#docker logs kolla/centos-source-fluentd

INFO:__main__:Coping file from /var/lib/kolla/config_files/output/00-local.conf to /etc/td-agent/output/00-local.conf
INFO:__main__:Setting file /etc/td-agent/output/00-local.conf owner to td-agent:td-agent
INFO:__main__:Setting file /etc/td-agent/output/00-local.conf permission to 0600
INFO:__main__:Writing out command to execute
Running command: '/usr/sbin/td-agent'
2017-11-16 14:32:54 +0100 [info]: parsing config file is succeeded path="/etc/td-agent/td-agent.conf"
2017-11-16 14:32:54 +0100 [error]: config error file="/etc/td-agent/td-agent.conf" error_class=Fluent::ConfigError error="\"rewriterule<num>\" support has been dropped. Use <rule> section instead."

Thank you

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

please use the same version of kolla and kolla-ansible. then you should be OK.

Revision history for this message
Tomas Pipot (tommycz) wrote :

Yes, I used the same version of kolla and kolla ansible. The errors in my initial bug desription for version 4.0.0 are still unresolved.
The error which I wrote on 2017-11-16 raise when i try to use kolla qeens docker images. I know, these are new, not validated...

Thank you

Revision history for this message
Tomas Pipot (tommycz) wrote :

Not sure if you repair those images or made any changes. I downloaded images by kolla-ansible pull command again and deployment went smoothly, no errors appeared.

Thank you.

Regards Tom

Revision history for this message
remche (remi-cailletaud) wrote :

Same thing here. Container keeps restarting. Tried with 4.0.0 or ocata for openstack_release.

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

for comment #1 issue, this is fixed by https://review.openstack.org/#/c/521337/

and comment #1 issue is not the same with the bug description.

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

For this bug, please try the latest ocata image and latest ocata kolla-ansible version, which should fixed the issue.

mark this bug as invalid.

Changed in kolla-ansible:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.