Update of nova.conf is atttempted during provisioning of compute node who is a tor-agent

Bug #1605480 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Medium
Ignatious Johnson Christopher
Trunk
Fix Committed
Medium
Ignatious Johnson Christopher

Bug Description

R3.1.0.0 Build 4 Kilo

Below, 10.204.216.223 is a tor-agent/tsn node. It will not have /etc/nova/nova.conf

2016-07-22 11:09:36:004844: [root@10.204.216.223] out: [localhost] local: sudo echo SERVICE_TOKEN=d338d499da64201a13e8 >> /tmp/tmpWLEf_T/ctrl-detail
s
2016-07-22 11:09:36:004984: [root@10.204.216.223] out: [localhost] local: sudo echo AUTH_PROTOCOL=http >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:012585: [root@10.204.216.223] out: [localhost] local: sudo echo QUANTUM_PROTOCOL=http >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:020146: [root@10.204.216.223] out: [localhost] local: sudo echo ADMIN_TOKEN=contrail123 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:035859: [root@10.204.216.223] out: [localhost] local: sudo echo CONTROLLER=10.204.216.184 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:037243: [root@10.204.216.223] out: [localhost] local: sudo echo AMQP_SERVER=10.204.216.184 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:052852: [root@10.204.216.223] out: [localhost] local: sudo echo HYPERVISOR=libvirt >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:054209: [root@10.204.216.223] out: [localhost] local: sudo echo NOVA_PASSWORD=contrail123 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:069833: [root@10.204.216.223] out: [localhost] local: sudo echo NEUTRON_PASSWORD=contrail123 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:073320: [root@10.204.216.223] out: [localhost] local: sudo echo SERVICE_TENANT_NAME=service >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:080870: [root@10.204.216.223] out: [localhost] local: sudo echo QUANTUM=10.204.216.184 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:088500: [root@10.204.216.223] out: [localhost] local: sudo echo QUANTUM_PORT=None >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:104173: [root@10.204.216.223] out: [localhost] local: sudo echo COMPUTE=10.204.216.223 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:105545: [root@10.204.216.223] out: [localhost] local: sudo echo SELF_MGMT_IP=10.204.216.223 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:113080: [root@10.204.216.223] out: [localhost] local: sudo echo CONTROLLER_MGMT=10.204.216.58 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:128712: [root@10.204.216.223] out: [localhost] local: sudo echo INTERNAL_VIP=10.204.216.184 >> /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:132270: [root@10.204.216.223] out: [localhost] local: sudo echo CONTRAIL_INTERNAL_VIP=10.204.216.184 >> /tmp/tmpWLEf_T/ctrl-deta
ils
2016-07-22 11:09:36:139856: [root@10.204.216.223] out: [localhost] local: sudo cp /tmp/tmpWLEf_T/ctrl-details /etc/contrail/ctrl-details
2016-07-22 11:09:36:147692: [root@10.204.216.223] out: [localhost] local: sudo rm /tmp/tmpWLEf_T/ctrl-details
2016-07-22 11:09:36:163536: [root@10.204.216.223] out: [localhost] local: openstack-config --set /etc/nova/nova.conf DEFAULT neutron_admin_auth_url http://10.204.216.184:5000/v2.0
2016-07-22 11:09:36:195141: [root@10.204.216.223] out: Traceback (most recent call last):
2016-07-22 11:09:36:226758: [root@10.204.216.223] out: File "/usr/bin/openstack-config", line 50, in <module>
2016-07-22 11:09:36:226825: [root@10.204.216.223] out: conf.readfp(open(cfgfile))
2016-07-22 11:09:36:226876: [root@10.204.216.223] out: IOError: [Errno 2] No such file or directory: '/etc/nova/nova.conf'
2016-07-22 11:09:36:226920: [root@10.204.216.223] out:
2016-07-22 11:09:36:226979: [root@10.204.216.223] out: Warning: local() encountered an error (return code 1) while executing 'openstack-config --set /etc/nova/nova.conf DEFAULT neutron_admin_auth_url http://10.204.216.184:5000/v2.0'
2016-07-22 11:09:36:227030: [root@10.204.216.223] out:
2016-07-22 11:09:36:227074: [root@10.204.216.223] out: [localhost] local: sudo grep -q '^cgroup_device_acl' /etc/libvirt/qemu.conf
2016-07-22 11:09:36:227117: [root@10.204.216.223] out: grep: /etc/libvirt/qemu.conf: No such file or directory
2016-07-22 11:09:36:227160: [root@10.204.216.223] out:
2016-07-22 11:09:36:227201: [root@10.204.216.223] out: Warning: local() encountered an error (return code 2) while executing 'sudo grep -q '^cgroup_device_acl' /etc/libvirt/qemu.conf'
2016-07-22 11:09:36:227243: [root@10.204.216.223] out:

Tags: provisioning
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

host1 = 'root@10.204.216.58'
host2 = 'root@10.204.216.59'
host3 = 'root@10.204.216.60'
host4 = 'root@10.204.216.221'
host5 = 'root@10.204.216.222'
host6 = 'root@10.204.216.223'
host7 = 'root@10.204.217.51'

env.roledefs = {
    'all': [host1, host2, host3, host4, host5, host6, host7],
    'cfgm': [host1,host2,host3],
    'openstack': [host1,host2,host3],
    'control': [host1,host2,host3],
    'compute': [host4,host5, host6, host7 ],
    'collector': [host1,host2,host3],
    'webui': [host1],
    'database': [host1,host2,host3],
    'toragent': [host6, host7],
    'tsn': [host6, host7],
    'build': [host_build],
}

env.hostnames = {
    'all': ['nodec1', 'nodec2', 'nodec3', 'nodek1', 'nodek2', 'nodek3', 'nodeg11']
}

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22777
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22778
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22778
Committed: http://github.org/Juniper/contrail-provisioning/commit/5617b8a8efa071da398b73b0dc90b5a04b0286e2
Submitter: Zuul
Branch: R3.1

commit 5617b8a8efa071da398b73b0dc90b5a04b0286e2
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Aug 2 15:05:16 2016 -0700

Check for config_nova flag before proceeding to provison
nova.conf.

Change-Id: Ia949224b9e108e41856a28e92dae43ca658e9dd6
Closes-Bug: 1605480

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/22777
Committed: http://github.org/Juniper/contrail-provisioning/commit/ce4712ae6a01d194469f828185b063c0cf061085
Submitter: Zuul
Branch: master

commit ce4712ae6a01d194469f828185b063c0cf061085
Author: Ignatious Johnson Christopher <email address hidden>
Date: Tue Aug 2 15:05:16 2016 -0700

Check for config_nova flag before proceeding to provison
nova.conf.

Change-Id: Ia949224b9e108e41856a28e92dae43ca658e9dd6
Closes-Bug: 1605480

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.