./stack.sh failed with TypeError: get_conf_options() got an unexpected keyword argument 'deprecated_opts'

Bug #1750525 reported by அருண் குமார் - Arun Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Expired
Undecided
Unassigned

Bug Description

stack@ubuntu:~/devstack$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
Codename: bionic

Issues in Devstack branches: master or stable/pike or stable/ocata or stable/queens

OS:
stack@ubuntu:~/devstack$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
Codename: bionic

Local.conf:cat local.conf
[[local|localrc]]
RECLONE=False
HOST_IP=192.168.20.131
FLOATING_RANGE=192.168.20.0/24
Q_FLOATING_ALLOCATION_POOL=start=192.168.20.192,end=192.168.20.250
SERVICE_TOKEN=root
ADMIN_PASSWORD=root
MYSQL_PASSWORD=root
RABBIT_PASSWORD=root
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
disable_service n-net temptest
enable_service c-api c-sch c-vol c-bak
enable_service q-svc q-agt q-dhcp q-l3 q-meta
enable_service s-proxy s-object s-container s-account

enable_plugin heat https://git.openstack.org/openstack/heat
enable_service heat h-api h-api-cfg h-api-cw h-eng

Error:
2018-02-20 09:09:26.999 | tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected
2018-02-20 09:09:27.000 | +lib/lvm:init_lvm_volume_group:136 awk '/Target/ {print $3}'
2018-02-20 09:09:27.029 | +lib/lvm:init_lvm_volume_group:138 _clean_lvm_volume_group stack-volumes-lvmdriver-1
2018-02-20 09:09:27.046 | +lib/lvm:_clean_lvm_volume_group:40 local vg=stack-volumes-lvmdriver-1
2018-02-20 09:09:27.056 | +lib/lvm:_clean_lvm_volume_group:43 sudo lvremove -f stack-volumes-lvmdriver-1
2018-02-20 09:09:27.077 | WARNING: Device /dev/loop2 has size of 0 sectors which is smaller than corresponding PV size of 20992000 sectors. Was device resized?
2018-02-20 09:09:27.077 | One or more devices used as PVs in VG stack-volumes-lvmdriver-1 have changed sizes.
2018-02-20 09:09:27.088 | +lib/cinder:init_cinder:433 mkdir -p /opt/stack/data/cinder/volumes
2018-02-20 09:09:27.098 | +lib/cinder:init_cinder:434 create_cinder_cache_dir
2018-02-20 09:09:27.107 | +lib/cinder:create_cinder_cache_dir:402 sudo install -d -o stack /var/cache/cinder
2018-02-20 09:09:27.127 | +lib/cinder:create_cinder_cache_dir:403 rm -f '/var/cache/cinder/*'
2018-02-20 09:09:27.136 | +./stack.sh:main:1187 is_service_enabled nova
2018-02-20 09:09:27.197 | +functions-common:is_service_enabled:1908 return 0
2018-02-20 09:09:27.206 | +./stack.sh:main:1188 echo_summary 'Configuring Nova'
2018-02-20 09:09:27.214 | +./stack.sh:echo_summary:433 [[ -t 3 ]]
2018-02-20 09:09:27.229 | +./stack.sh:echo_summary:433 [[ True != \T\r\u\e ]]
2018-02-20 09:09:27.239 | +./stack.sh:echo_summary:439 echo -e Configuring Nova
2018-02-20 09:09:27.248 | +./stack.sh:main:1189 init_nova
2018-02-20 09:09:27.255 | +lib/nova:init_nova:697 is_service_enabled mysql postgresql
2018-02-20 09:09:27.334 | +functions-common:is_service_enabled:1908 return 0
2018-02-20 09:09:27.342 | +lib/nova:init_nova:697 is_service_enabled n-api
2018-02-20 09:09:27.432 | +functions-common:is_service_enabled:1908 return 0
2018-02-20 09:09:27.449 | +lib/nova:init_nova:698 recreate_database nova_api
2018-02-20 09:09:27.459 | +lib/database:recreate_database:112 local db=nova_api
2018-02-20 09:09:27.469 | +lib/database:recreate_database:113 recreate_database_mysql nova_api
2018-02-20 09:09:27.482 | +lib/databases/mysql:recreate_database_mysql:55 local db=nova_api
2018-02-20 09:09:27.500 | +lib/databases/mysql:recreate_database_mysql:56 mysql -uroot -proot -h127.0.0.1 -e 'DROP DATABASE IF EXISTS nova_api;'
2018-02-20 09:09:27.505 | mysql: [Warning] Using a password on the command line interface can be insecure.
2018-02-20 09:09:27.535 | +lib/databases/mysql:recreate_database_mysql:57 mysql -uroot -proot -h127.0.0.1 -e 'CREATE DATABASE nova_api CHARACTER SET utf8;'
2018-02-20 09:09:27.539 | mysql: [Warning] Using a password on the command line interface can be insecure.
2018-02-20 09:09:27.557 | +lib/nova:init_nova:699 /usr/local/bin/nova-manage --config-file /etc/nova/nova.conf api_db sync
2018-02-20 09:09:28.574 | Traceback (most recent call last):
2018-02-20 09:09:28.574 | File "/usr/local/bin/nova-manage", line 6, in <module>
2018-02-20 09:09:28.574 | from nova.cmd.manage import main
2018-02-20 09:09:28.574 | File "/opt/stack/nova/nova/cmd/manage.py", line 46, in <module>
2018-02-20 09:09:28.574 | from nova.api.ec2 import ec2utils
2018-02-20 09:09:28.574 | File "/opt/stack/nova/nova/api/ec2/ec2utils.py", line 25, in <module>
2018-02-20 09:09:28.574 | from nova import cache_utils
2018-02-20 09:09:28.574 | File "/opt/stack/nova/nova/cache_utils.py", line 22, in <module>
2018-02-20 09:09:28.574 | import nova.conf
2018-02-20 09:09:28.574 | File "/opt/stack/nova/nova/conf/__init__.py", line 91, in <module>
2018-02-20 09:09:28.574 | glance.register_opts(CONF)
2018-02-20 09:09:28.574 | File "/opt/stack/nova/nova/conf/glance.py", line 162, in register_opts
2018-02-20 09:09:28.574 | deprecated_opts=deprecated_ksa_opts)
2018-02-20 09:09:28.574 | File "/opt/stack/nova/nova/conf/utils.py", line 83, in register_ksa_opts
2018-02-20 09:09:28.574 | default_service_type, deprecated_opts=deprecated_opts), group=group)
2018-02-20 09:09:28.574 | File "/opt/stack/nova/nova/conf/utils.py", line 37, in get_ksa_adapter_opts
2018-02-20 09:09:28.574 | deprecated_opts=deprecated_opts)
2018-02-20 09:09:28.574 | File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/loading/adapter.py", line 217, in get_conf_options
2018-02-20 09:09:28.574 | return Adapter.get_conf_options(*args, **kwargs)
2018-02-20 09:09:28.574 | TypeError: get_conf_options() got an unexpected keyword argument 'deprecated_opts'
2018-02-20 09:09:28.648 | +lib/nova:init_nova:1 exit_trap
2018-02-20 09:09:28.660 | +./stack.sh:exit_trap:510 local r=1
2018-02-20 09:09:28.667 | ++./stack.sh:exit_trap:511 jobs -p
2018-02-20 09:09:28.676 | +./stack.sh:exit_trap:511 jobs=
2018-02-20 09:09:28.687 | +./stack.sh:exit_trap:514 [[ -n '' ]]
2018-02-20 09:09:28.697 | +./stack.sh:exit_trap:520 '[' -f /tmp/tmp.73DueG4EYi ']'
2018-02-20 09:09:28.710 | +./stack.sh:exit_trap:521 rm /tmp/tmp.73DueG4EYi
2018-02-20 09:09:28.719 | +./stack.sh:exit_trap:525 kill_spinner
2018-02-20 09:09:28.734 | +./stack.sh:kill_spinner:424 '[' '!' -z '' ']'
2018-02-20 09:09:28.745 | +./stack.sh:exit_trap:527 [[ 1 -ne 0 ]]
2018-02-20 09:09:28.763 | +./stack.sh:exit_trap:528 echo 'Error on exit'
2018-02-20 09:09:28.763 | Error on exit
2018-02-20 09:09:28.776 | +./stack.sh:exit_trap:530 type -p generate-subunit
2018-02-20 09:09:28.784 | +./stack.sh:exit_trap:531 generate-subunit 1519116933 835 fail
2018-02-20 09:09:29.284 | +./stack.sh:exit_trap:533 [[ -z /opt/stack/logs ]]
2018-02-20 09:09:29.289 | +./stack.sh:exit_trap:536 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2018-02-20 09:09:30.000 | +./stack.sh:exit_trap:545 exit 1

Revision history for this message
அருண் குமார் - Arun Kumar (thangamani-arun) wrote :

devstack build was successful only in Ubuntu 17.10 with below local.conf

[[local|localrc]]
RECLONE=False
HOST_IP=192.168.20.131
FLOATING_RANGE=192.168.20.0/24
Q_FLOATING_ALLOCATION_POOL=start=192.168.20.192,end=192.168.20.250
SERVICE_TOKEN=root
ADMIN_PASSWORD=root
MYSQL_PASSWORD=root
RABBIT_PASSWORD=root
SERVICE_PASSWORD=$ADMIN_PASSWORD
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=2
disable_service n-net temptest
enable_service c-api c-sch c-vol c-bak
enable_service q-svc q-agt q-dhcp q-l3 q-meta
enable_service s-proxy s-object s-container s-account

enable_plugin heat https://git.openstack.org/openstack/heat
enable_service heat h-api h-api-cfg h-api-cw h-eng

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

I cannot reproduce this. Please post the exact steps to reproduce, starting from a fresh VM and attach the complete output of the stack.sh run.

Changed in devstack:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
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.