greenfield install -- two new bugs on rsyslog play

Bug #1633739 reported by admin0
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Ravi Gummadi

Bug Description

openstack/newton

TASK [rsyslog_client : Find all log files] *************************************

task path: /etc/ansible/roles/rsyslog_client/tasks/rsyslog_client_post_install.yml:34
fatal: [c16_repo_container-818d82d7]: FAILED! => {"failed": true, "msg": "The conditional check 'log_dir.stat.isdir' failed. The error was: error while evaluating conditional (log_dir.stat.isdir): 'dict object' has no attribute 'isdir'\n\nThe error appears to have been in '/etc/ansible/roles/rsyslog_client/tasks/rsyslog_client_post_install.yml': line 34, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Find all log files\n ^ here\n"}

fatal: [c15_repo_container-5f53137a]: FAILED! => {"failed": true, "msg": "The conditional check 'log_dir.stat.isdir' failed. The error was: error while evaluating conditional (log_dir.stat.isdir): 'dict object' has no attribute 'isdir'\n\nThe error appears to have been in '/etc/ansible/roles/rsyslog_client/tasks/rsyslog_client_post_install.yml': line 34, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Find all log files\n ^ here\n"}

fatal: [c14_repo_container-ecd65fd6]: FAILED! => {"failed": true, "msg": "The conditional check 'log_dir.stat.isdir' failed. The error was: error while evaluating conditional (log_dir.stat.isdir): 'dict object' has no attribute 'isdir'\n\nThe error appears to have been in '/etc/ansible/roles/rsyslog_client/tasks/rsyslog_client_post_install.yml': line 34, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Find all log files\n ^ here\n"}

TASK [rsyslog_client : Union the log files] ************************************
fatal: [c16_repo_container-818d82d7]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'log_files' is undefined\n\nThe error appears to have been in '/etc/ansible/roles/rsyslog_client/tasks/rsyslog_client_post_install.yml': line 43, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Union the log files\n ^ here\n"}

fatal: [c15_repo_container-5f53137a]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'log_files' is undefined\n\nThe error appears to have been in '/etc/ansible/roles/rsyslog_client/tasks/rsyslog_client_post_install.yml': line 43, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Union the log files\n ^ here\n"}

fatal: [c14_repo_container-ecd65fd6]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'log_files' is undefined\n\nThe error appears to have been in '/etc/ansible/roles/rsyslog_client/tasks/rsyslog_client_post_install.yml': line 43, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Union the log files\n ^ here\n"}

## config file ##
---
 cidr_networks:
   container: 172.29.236.0/22
   tunnel: 172.29.240.0/22
   storage: 172.29.244.0/22
 used_ips:
   - "172.29.236.1,172.29.236.100"
   - "172.29.240.1,172.29.240.100"
   - "172.29.244.1,172.29.244.100"

 global_overrides:
   internal_lb_vip_address: cloud101int.stack31.com
   external_lb_vip_address: cloud101.stack31.com
   management_bridge: br-mgmt
   tunnel_bridge: br-vxlan

   provider_networks:
     - network:
         group_binds:
           - all_containers
           - hosts
         type: "raw"
         container_bridge: "br-mgmt"
         container_interface: "eth1"
         container_type: "veth"
         ip_from_q: "container"
         is_container_address: true
         is_ssh_address: true
     - network:
         group_binds:
           - glance_api
           - cinder_api
           - cinder_volume
           - nova_compute
           # Uncomment the next line if using swift with a storage network.
           # - swift_proxy
         type: "raw"
         container_bridge: "br-storage"
         container_type: "veth"
         container_interface: "eth2"
         container_mtu: "9000"
         ip_from_q: "storage"
     - network:
         group_binds:
           - neutron_linuxbridge_agent
         container_bridge: "br-vxlan"
         container_type: "veth"
         container_interface: "eth10"
         container_mtu: "9000"
         ip_from_q: "tunnel"
         type: "vxlan"
         range: "10000:100000"
         net_name: "vxlan"
     - network:
         group_binds:
           - neutron_linuxbridge_agent
         container_bridge: "br-vlan"
         container_type: "veth"
         container_interface: "eth11"
         type: "vlan"
         range: "101:501"
         net_name: "vlan"
     - network:
         group_binds:
           - neutron_linuxbridge_agent
         container_bridge: "br-vlan"
         container_type: "veth"
         container_interface: "eth12"
         host_bind_override: "ens2"
         type: "flat"
         net_name: "flat"

 shared-infra_hosts:
   c14:
     ip: 172.29.236.14
   c15:
     ip: 172.29.236.15
   c16:
     ip: 172.29.236.16

 repo-infra_hosts:
   c14:
     ip: 172.29.236.14
   c15:
     ip: 172.29.236.15
   c16:
     ip: 172.29.236.16

 os-infra_hosts:
   c14:
     ip: 172.29.236.14
   c15:
     ip: 172.29.236.15
   c16:
     ip: 172.29.236.16
 identity_hosts:
   c14:
     ip: 172.29.236.14
   c15:
     ip: 172.29.236.15
   c16:
     ip: 172.29.236.16
 network_hosts:
   c14:
     ip: 172.29.236.14
   c15:
     ip: 172.29.236.15
   c16:
     ip: 172.29.236.16
 compute_hosts:
   c23:
     ip: 172.29.236.23
 storage-infra_hosts:
   c14:
     ip: 172.29.236.14
   c15:
     ip: 172.29.236.15
   c16:
     ip: 172.29.236.16

 storage_hosts:
  c13:
   ip: 172.29.236.13

 log_hosts:
   c13:
     ip: 172.29.236.13
 haproxy_hosts:
   c14:
     ip: 172.29.236.14
   c15:
     ip: 172.29.236.15
   c16:
     ip: 172.29.236.16

## variables ##

---
debug: true
service_region: NL2AMS2

keystone_service_user_name: keystone2
nova_service_user_name: nova2
neutron_service_user_name: neutron2
cinder_service_user_name: cinder2
heat_service_user_name: heat2
glance_service_user_name: glance2
glance_swift_store_user: glance2
swift_service_user_name: swift2

aodh_service_user_name: aodh2
ceilometer_service_user_name: ceilometer2

ironic_service_user_name: ironic2
repo_service_user_name: nginx2

gnocchi_service_user_name: gnocchi2
sahara_service_user_name: sahara2
magnum_service_user_name: magnum2

haproxy_keepalived_external_vip_cidr: "10.11.12.3/22"
haproxy_keepalived_internal_vip_cidr: "172.29.236.3/22"
haproxy_keepalived_external_interface: ens2
haproxy_keepalived_internal_interface: br-mgmt

haproxy_keepalived_external_virtual_router_id: 10
haproxy_keepalived_internal_virtual_router_id: 11

haproxy_user_ssl_cert: /opt/stack31.crt
haproxy_user_ssl_key: /opt/stack31.key

neutron_plugin_base:
   - router
   - firewall
   - neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
   - metering
   - qos

Revision history for this message
Alexandra Settle (alexandra-settle) wrote :

Hey Shashi,

Could you please provide contextual information to this report?
We require the steps you performed to get to this error. After that we will request that someone recreates your issue.

Please in future, always report bugs with full contextual information of 'how' and 'what'.

Thank you,

Alex

Changed in openstack-ansible:
importance: Undecided → Medium
Revision history for this message
admin0 (shashi-eu) wrote :

Hi,

The culprit was this: repo_service_user_name: nginx2
The playbooks were looking for nginx and not nginx2.

Revision history for this message
Ravi Gummadi (ravigumm) wrote :

Am able to reproduce the error with the setting repo_service_user_name: nginx2

Changed in openstack-ansible:
assignee: nobody → Ravi Gummadi (ravigumm)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-repo_server (master)

Fix proposed to branch: master
Review: https://review.openstack.org/390063

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/390065

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-rsyslog_client (master)

Fix proposed to branch: master
Review: https://review.openstack.org/390066

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-rsyslog_client (master)

Reviewed: https://review.openstack.org/390066
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-rsyslog_client/commit/?id=06e04a7fdff26ed22d571e6658bf7aa050fe924a
Submitter: Jenkins
Branch: master

commit 06e04a7fdff26ed22d571e6658bf7aa050fe924a
Author: Ravi Gummadi <email address hidden>
Date: Sun Oct 23 04:51:27 2016 -0500

    Fix errors due to repo_service_user_name setting

    Changing the paths of nginx logs to not rely on the
     user name of repo service. This is because nginx related
     configurations, playbooks assume nginx in the directory names.

    Change-Id: I84f7e029ff0ce5d0c79acbd2e401d93d8fd2963c
    Closes-Bug: #1633739

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-rsyslog_client (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/390506

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-repo_server (master)

Reviewed: https://review.openstack.org/390063
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_server/commit/?id=31c89372716d9165fe02c723a365ed318b572998
Submitter: Jenkins
Branch: master

commit 31c89372716d9165fe02c723a365ed318b572998
Author: Ravi Gummadi <email address hidden>
Date: Sun Oct 23 05:05:28 2016 -0500

    Fix errors due to repo_service_user_name setting

    Changing the paths of nginx logs to not rely on the
     user name of repo service. This is because nginx related
     configurations, playbooks assume nginx in the directory names.

    Change-Id: I458293c687c1857e7d8451a200173bec554d9559
    Closes-Bug: #1633739

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/390065
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=f4247c7c144cd199d8435ba78b3f3f11ffaf70ac
Submitter: Jenkins
Branch: master

commit f4247c7c144cd199d8435ba78b3f3f11ffaf70ac
Author: Ravi Gummadi <email address hidden>
Date: Sun Oct 23 04:59:04 2016 -0500

    Fix errors due to repo_service_user_name setting

    Changing the paths of nginx logs to not rely on the
     user name of repo service. This is because nginx related
     configurations, playbooks assume nginx in the directory names.

    Change-Id: I2fb0ec7a2f6a1d536363d1b2056394b6534287cf
    Closes-Bug: #1633739

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-repo_server (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/390522

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/390523

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-rsyslog_client (stable/newton)

Reviewed: https://review.openstack.org/390506
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-rsyslog_client/commit/?id=8955d0dc17fc1cd5960cd376e553588279d302d8
Submitter: Jenkins
Branch: stable/newton

commit 8955d0dc17fc1cd5960cd376e553588279d302d8
Author: Ravi Gummadi <email address hidden>
Date: Sun Oct 23 04:51:27 2016 -0500

    Fix errors due to repo_service_user_name setting

    Changing the paths of nginx logs to not rely on the
     user name of repo service. This is because nginx related
     configurations, playbooks assume nginx in the directory names.

    Change-Id: I84f7e029ff0ce5d0c79acbd2e401d93d8fd2963c
    Closes-Bug: #1633739
    (cherry picked from commit 06e04a7fdff26ed22d571e6658bf7aa050fe924a)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-repo_server (stable/newton)

Reviewed: https://review.openstack.org/390522
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_server/commit/?id=d737558d28407efb9b2b20db954ef19d15bc7564
Submitter: Jenkins
Branch: stable/newton

commit d737558d28407efb9b2b20db954ef19d15bc7564
Author: Ravi Gummadi <email address hidden>
Date: Sun Oct 23 05:05:28 2016 -0500

    Fix errors due to repo_service_user_name setting

    Changing the paths of nginx logs to not rely on the
     user name of repo service. This is because nginx related
     configurations, playbooks assume nginx in the directory names.

    Change-Id: I458293c687c1857e7d8451a200173bec554d9559
    Closes-Bug: #1633739
    (cherry picked from commit 31c89372716d9165fe02c723a365ed318b572998)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/newton)

Reviewed: https://review.openstack.org/390523
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=2b0beb3c72b46888a6f890454f3409733e57db2c
Submitter: Jenkins
Branch: stable/newton

commit 2b0beb3c72b46888a6f890454f3409733e57db2c
Author: Ravi Gummadi <email address hidden>
Date: Sun Oct 23 04:59:04 2016 -0500

    Fix errors due to repo_service_user_name setting

    Changing the paths of nginx logs to not rely on the
     user name of repo service. This is because nginx related
     configurations, playbooks assume nginx in the directory names.

    Change-Id: I2fb0ec7a2f6a1d536363d1b2056394b6534287cf
    Closes-Bug: #1633739
    (cherry picked from commit f4247c7c144cd199d8435ba78b3f3f11ffaf70ac)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 14.0.1

This issue was fixed in the openstack/openstack-ansible 14.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-repo_server 14.0.1

This issue was fixed in the openstack/openstack-ansible-repo_server 14.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-rsyslog_client 14.0.1

This issue was fixed in the openstack/openstack-ansible-rsyslog_client 14.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 14.0.1

This issue was fixed in the openstack/openstack-ansible 14.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-repo_server 14.0.1

This issue was fixed in the openstack/openstack-ansible-repo_server 14.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-rsyslog_client 14.0.1

This issue was fixed in the openstack/openstack-ansible-rsyslog_client 14.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 15.0.0.0b1

This issue was fixed in the openstack/openstack-ansible 15.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-repo_server 15.0.0.0b1

This issue was fixed in the openstack/openstack-ansible-repo_server 15.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-rsyslog_client 15.0.0.0b1

This issue was fixed in the openstack/openstack-ansible-rsyslog_client 15.0.0.0b1 development milestone.

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.