[nova] Which nova container service that nova/conf/compute.py map to

yu.chengde at 99cloud.net yu.chengde at 99cloud.net
Wed Oct 23 07:03:44 UTC 2019


Hi Radosiaw:
  Thanks for answer.
  But, I got another issue while deploy OpenStack:stein with adding “nova_dev_mode” in globals.yml
  Please refer to log listed below for detail.
  The placement where I face the problem is 

  "nova : Running Nova bootstrap container”
   ...
   "AttributeError: 'module' object has no attribute 'COMPUTE_IMAGE_TYPE_AKI'"


   I can’t find any related code with it. 
   Need your help to handle this, many thanks.

   
   Kolla-ansible vision : stable/stein 
   Ansible version : stable/stein
   Environment:  intel Grantley i7-6950
   Method to reproduce : $  kolla-ansible -i all-in-one deploy


TASK [nova : Running Nova bootstrap container] *********************************
fatal: [chantyu -> chantyu]: FAILED! => {"changed": true, "msg": "Container exited with non-zero return code 1", "rc": 1, "stderr": "+ sudo -E kolla_set_configs\nINFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json\nINFO:__main__:Validating config file\nINFO:__main__:Kolla config strategy set to: COPY_ALWAYS\nINFO:__main__:Copying service configuration files\nINFO:__main__:Copying /var/lib/kolla/config_files/nova.conf to /etc/nova/nova.conf\nINFO:__main__:Setting permission for /etc/nova/nova.conf\nINFO:__main__:Writing out command to execute\nINFO:__main__:Setting permission for /var/log/kolla/nova\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-manage.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-conductor.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-scheduler.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-consoleauth.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-novncproxy.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-serialproxy.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-api.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/nova-compute.log\nINFO:__main__:Setting permission for /var/log/kolla/nova/privsep-helper.log\n++ cat /run_command\n+ CMD=nova-api\n+ ARGS=\n+ [[ ! -n '' ]]\n+ . kolla_extend_start\n++ [[ ! -d /var/log/kolla/nova ]]\n+++ stat -c %a /var/log/kolla/nova\n++ [[ 2755 != \\7\\5\\5 ]]\n++ chmod 755 /var/log/kolla/nova\n++ . /usr/local/bin/kolla_nova_extend_start\n+++ [[ -n '' ]]\n+++ [[ -n 0 ]]\n+++ nova-manage api_db sync\n/var/lib/kolla/venv/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use \"pip install psycopg2-binary\" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.\n  \"\"\")\nTraceback (most recent call last):\n  File \"/var/lib/kolla/venv/bin/nova-manage\", line 6, in <module>\n    from nova.cmd.manage import main\n  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/cmd/manage.py\", line 51, in <module>\n    from nova.compute import api as compute_api\n  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/api.py\", line 40, in <module>\n    from nova import block_device\n  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/block_device.py\", line 26, in <module>\n    from nova.virt import driver\n  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/driver.py\", line 115, in <module>\n    \"supports_image_type_aki\": os_traits.COMPUTE_IMAGE_TYPE_AKI,\nAttributeError: 'module' object has no attribute 'COMPUTE_IMAGE_TYPE_AKI'\n", "stderr_lines": ["+ sudo -E kolla_set_configs", "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__:Copying /var/lib/kolla/config_files/nova.conf to /etc/nova/nova.conf", "INFO:__main__:Setting permission for /etc/nova/nova.conf", "INFO:__main__:Writing out command to execute", "INFO:__main__:Setting permission for /var/log/kolla/nova", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-manage.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-conductor.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-scheduler.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-consoleauth.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-novncproxy.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-serialproxy.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-api.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/nova-compute.log", "INFO:__main__:Setting permission for /var/log/kolla/nova/privsep-helper.log", "++ cat /run_command", "+ CMD=nova-api", "+ ARGS=", "+ [[ ! -n '' ]]", "+ . kolla_extend_start", "++ [[ ! -d /var/log/kolla/nova ]]", "+++ stat -c %a /var/log/kolla/nova", "++ [[ 2755 != \\7\\5\\5 ]]", "++ chmod 755 /var/log/kolla/nova", "++ . /usr/local/bin/kolla_nova_extend_start", "+++ [[ -n '' ]]", "+++ [[ -n 0 ]]", "+++ nova-manage api_db sync", "/var/lib/kolla/venv/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use \"pip install psycopg2-binary\" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.", "  \"\"\")", "Traceback (most recent call last):", "  File \"/var/lib/kolla/venv/bin/nova-manage\", line 6, in <module>", "    from nova.cmd.manage import main", "  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/cmd/manage.py\", line 51, in <module>", "    from nova.compute import api as compute_api", "  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/api.py\", line 40, in <module>", "    from nova import block_device", "  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/block_device.py\", line 26, in <module>", "    from nova.virt import driver", "  File \"/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/driver.py\", line 115, in <module>", "    \"supports_image_type_aki\": os_traits.COMPUTE_IMAGE_TYPE_AKI,", "AttributeError: 'module' object has no attribute 'COMPUTE_IMAGE_TYPE_AKI'"], "stdout": "", "stdout_lines": []}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
chantyu                    : ok=245  changed=8    unreachable=0    failed=1    skipped=125  rescued=0    ignored=0   

Command failed ansible-playbook -i ../../all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla  -e kolla_action=deploy /home/openstack/src/kolla-ansible/ansible/site.yml 



> Radosław Piliszek <radoslaw.piliszek at gmail.com> 於 2019年10月16日 下午7:50 寫道:
> 
> Hi Yu,
> 
> you want to read: https://docs.openstack.org/kolla-ansible/latest/contributor/kolla-for-openstack-development.html <https://docs.openstack.org/kolla-ansible/latest/contributor/kolla-for-openstack-development.html>
> 
> In your case you should set:
>   nova_dev_mode: yes
> in globals.yml
> 
> Kind regards,
> Radek
> 
> śr., 16 paź 2019 o 13:10 yu.chengde at 99cloud.net <mailto:yu.chengde at 99cloud.net> <yu.chengde at 99cloud.net <mailto:yu.chengde at 99cloud.net>> napisał(a):
> Hi, 
>   I have deployed a stein version openstack on server thought Kolla-ansible method. 
>   Then, I git clone the nova code, and ready to do coding in " nova/nova/conf/compute.py"
>   However, many of nova containers include this file. 
>   So, I want to know that I should modify them all, or just pick a specific one.
>   Thanks
> 
> 
> [root at chantyu kolla-ansible]# docker ps | grep nova
> 05f72e539974        kolla/centos-source-nova-compute:stein                "dumb-init --single-…"   28 hours ago        Up 2 hours                              nova_compute
> 7393a7d566ee        kolla/centos-source-nova-libvirt:stein                "dumb-init --single-…"   28 hours ago        Up 5 hours                              nova_libvirt
> 9d8357cfa334        kolla/centos-source-nova-scheduler:stein              "dumb-init --single-…"   32 hours ago        Up 3 hours                              nova_scheduler
> 085b9da918df        kolla/centos-source-nova-api:stein                    "dumb-init --single-…"   6 days ago          Up 3 hours                              nova_api
> b80e9503e93e        kolla/centos-source-nova-serialproxy:stein            "dumb-init --single-…"   6 days ago          Up 3 hours                              nova_serialproxy
> c15d41823a22        kolla/centos-source-nova-novncproxy:stein             "dumb-init --single-…"   6 days ago          Up 3 hours                              nova_novncproxy
> c30e47cd56c6        kolla/centos-source-nova-consoleauth:stein            "dumb-init --single-…"   6 days ago          Up 3 hours                              nova_consoleauth
> b7d5e9ba1f11        kolla/centos-source-nova-ssh:stein                    "dumb-init --single-…"   7 days ago          Up 5 hours                              nova_ssh
> 3f81cd0a97ce        kolla/centos-source-nova-conductor:stein              "dumb-init --single-…"   7 days ago          Up 3 hours                              nova_conductor
> [root at chantyu kolla-ansible]#

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20191023/85d79601/attachment-0001.html>


More information about the openstack-discuss mailing list