** Also affects: nova
   Importance: Undecided
       Status: New

** Changed in: nova
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1831315

Title:
  Udercloud IPv6 - ValueError: invalid literal for int() with base 10:
  '3456:789a:1::3' - db connection URI gets its brackets eaten

Status in OpenStack Compute (nova):
  Confirmed
Status in oslo.config:
  Confirmed
Status in tripleo:
  Triaged

Bug description:
  file: undercloud.conf

  [DEFAULT]

  enable_routed_networks = true
  overcloud_domain_name = localdomain
  undercloud_ntp_servers = pool.ntp.org
  undercloud_hostname = undercloud.rdocloud
  local_interface = eth1
  local_mtu = 1450
  local_ip = fd12:3456:789a:1::1/64 
  undercloud_public_host = fd12:3456:789a:1::2
  undercloud_admin_host = fd12:3456:789a:1::3
  undercloud_nameservers = 2001:4860:4860::8888
  local_subnet = ctlplane-subnet
  subnets = ctlplane-subnet

  [ctlplane-subnet]
  cidr = fd12:3456:789a:1::/64
  dhcp_start = fd12:3456:789a:1::10
  dhcp_end = fd12:3456:789a:1::20
  gateway = fd12:3456:789a:1::1
  inspection_iprange = fd12:3456:789a:1::30,fd12:3456:789a:1::40
  masquerade = false

  Deploying the undercloud fails. Nova API log errors:

  ERROR nova.context Traceback (most recent call last):
  ERROR nova.context   File "/usr/lib/python2.7/site-packages/nova/context.py", 
line 442, in gather_result
  ERROR nova.context     result = fn(*args, **kwargs)
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 184, in 
wrapper
  ERROR nova.context     result = fn(cls, context, *args, **kwargs)
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/nova/objects/service.py", line 603, in get_all
  ERROR nova.context     db_services = db.service_get_all(context, 
disabled=disabled)
  ERROR nova.context   File "/usr/lib/python2.7/site-packages/nova/db/api.py", 
line 131, in service_get_all
  20 ERROR nova.context     return IMPL.service_get_all(context, disabled)
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 228, in 
wrapped
  ERROR nova.context     with ctxt_mgr.reader.using(context):
  ERROR nova.context   File "/usr/lib64/python2.7/contextlib.py", line 17, in 
__enter__
  nova.context     return self.gen.next()
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
1064, in _transaction_scope
  ERROR nova.context     context=context) as resource:
  nova.context   File "/usr/lib64/python2.7/contextlib.py", line 17, in 
__enter__
  nova.context     return self.gen.next()
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
659, in _session
  ERROR nova.context     bind=self.connection, mode=self.mode)
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
418, in _create_session
  ERROR nova.context     self._start()
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
510, in _start
  ERROR nova.context     engine_args, maker_args)
  nova.context   File 
"/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 
534, in _setup_for_connection
  ERROR nova.context     sql_connection=sql_connection, **engine_kwargs)
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/debtcollector/renames.py", line 43, in 
decorator
  ERROR nova.context     return wrapped(*args, **kwargs)
  ERROR nova.context   File 
"/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 153, in 
create_engine
  ERROR nova.context     url = sqlalchemy.engine.url.make_url(sql_connection)
  ERROR nova.context   File 
"/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 225, in 
make_url
  ERROR nova.context     return _parse_rfc1738_args(name_or_url)
  ERROR nova.context   File 
"/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 284, in 
_parse_rfc1738_args
  ERROR nova.context     return URL(name, **components)
  ERROR nova.context   File 
"/usr/lib64/python2.7/site-packages/sqlalchemy/engine/url.py", line 71, in 
__init__
  ERROR nova.context     self.port = int(port)
  ERROR nova.context ValueError: invalid literal for int() with base 10: 
'3456:789a:1::3'

  
  nova.conf:

  [DEFAULT]
  rootwrap_config=/etc/nova/rootwrap.conf
  compute_driver=ironic.IronicDriver
  allow_resize_to_same_host=False
  vif_plugging_is_fatal=True
  vif_plugging_timeout=300
  force_raw_images=True
  reserved_host_memory_mb=0
  ram_allocation_ratio=1.0
  sync_power_state_interval=-1
  heal_instance_info_cache_interval=60
  instance_name_template=instance-%08x
  force_config_drive=True
  my_ip=fd12:3456:789a:1::1
  host=undercloud.localdomain
  ssl_only=False
  state_path=/var/lib/nova
  report_interval=10
  service_down_time=60
  osapi_compute_listen=undercloud.ctlplane.localdomain
  osapi_compute_listen_port=8774
  osapi_compute_workers=3
  debug=True
  log_dir=/var/log/nova
  
transport_url=rabbit://guest:MNQpMltEFrxeh0Pfm5GiPoEg3@undercloud.ctlplane.localdomain:5672/?ssl=0
  ovsdb_connection=
  dhcp_domain=
  [api]
  auth_strategy=keystone
  use_forwarded_for=False
  [api_database]
  
connection=mysql+pymysql://nova_api:LP1VoffTn36gPLU8tz67YYEV8@[fd12:3456:789a:1::3]/nova_api?read_default_group=tripleo&read_default_file=/etc/my.cnf.d/tripleo.cnf
  [barbican]
  [cache]
  backend=oslo_cache.memcache_pool
  enabled=True
  memcache_servers=inet6:[fd12:3456:789a:1::1]:11211
  [cells]
  [cinder]
  catalog_info=volumev3:cinderv3:internalURL
  project_name=services
  project_domain_name=Default
  username=cinder
  user_domain_name=Default
  [compute]
  [conductor]
  workers=3
  [console]
  [consoleauth]
  [cors]
  [database]
  
connection=mysql+pymysql://nova:LP1VoffTn36gPLU8tz67YYEV8@[fd12:3456:789a:1::3]/nova?read_default_group=tripleo&read_default_file=/etc/my.cnf.d/tripleo.cnf
  max_retries=-1
  db_max_retries=-1
  [devices]
  [ephemeral_storage_encryption]
  [filter_scheduler]
  host_subset_size=1
  max_io_ops_per_host=8
  max_instances_per_host=50
  available_filters=tripleo_common.filters.list.tripleo_filters
  
enabled_filters=RetryFilter,TripleOCapabilitiesFilter,ComputeCapabilitiesFilter,AvailabilityZoneFilter,ComputeFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter
  weight_classes=nova.scheduler.weights.all_weighers
  [glance]
  api_servers=http://[fd12:3456:789a:1::3]:9292
  [guestfs]
  [healthcheck]
  [hyperv]
  [ironic]
  auth_url=http://[fd12:3456:789a:1::3]:5000
  project_name=service
  project_domain_name=Default
  username=ironic
  user_domain_name=Default
  password=UcElE3ePDhVifIDtgoCVriPGx
  auth_plugin=password
  api_endpoint=http://[fd12:3456:789a:1::3]:6385/v1
  [key_manager]
  backend=nova.keymgr.conf_key_mgr.ConfKeyManager
  [keystone]
  [keystone_authtoken]
  www_authenticate_uri=http://[fd12:3456:789a:1::3]:5000
  auth_uri=http://[fd12:3456:789a:1::3]:5000
  memcached_servers=inet6:[fd12:3456:789a:1::1]:11211
  auth_type=password
  auth_url=http://[fd12:3456:789a:1::3]:35357
  username=nova
  password=LP1VoffTn36gPLU8tz67YYEV8
  user_domain_name=Default
  project_name=service
  project_domain_name=Default
  [libvirt]
  [metrics]
  [mks]
  [neutron]
  url=http://[fd12:3456:789a:1::3]:9696
  ovs_bridge=br-int
  default_floating_pool=nova
  extension_sync_interval=600
  timeout=30
  auth_type=v3password
  auth_url=http://[fd12:3456:789a:1::3]:5000/v3
  project_name=service
  project_domain_name=Default
  username=neutron
  user_domain_name=Default
  password=856LPgtheeJocPQMFTVYFi0sM
  region_name=regionOne
  [notifications]
  notify_on_state_change=vm_and_task_state
  notification_format=unversioned
  [osapi_v21]
  [oslo_concurrency]
  lock_path=/var/lib/nova/tmp
  [oslo_messaging_amqp]
  [oslo_messaging_kafka]
  [oslo_messaging_notifications]
  driver=messagingv2
  
transport_url=rabbit://guest:MNQpMltEFrxeh0Pfm5GiPoEg3@undercloud.ctlplane.localdomain:5672/?ssl=0
  [oslo_messaging_rabbit]
  ssl=False
  heartbeat_timeout_threshold=60
  [oslo_middleware]
  [oslo_policy]
  policy_file=/etc/nova/policy.json
  [pci]
  [placement]
  auth_type=password
  auth_url=http://[fd12:3456:789a:1::3]:5000
  project_name=service
  project_domain_name=Default
  username=placement
  user_domain_name=Default
  password=QUHJHCJ4g0ZrfWQSfJRyiMfly
  valid_interfaces=internal
  region_name=regionOne
  [powervm]
  [privsep]
  [profiler]
  [quota]
  [rdp]
  [remote_debug]
  [scheduler]
  driver=filter_scheduler
  max_attempts=2
  discover_hosts_in_cells_interval=-1
  workers=3
  [serial_console]
  [service_user]
  [spice]
  enabled=False
  [upgrade_levels]
  [vault]
  [vendordata_dynamic_auth]
  project_domain_name=Default
  user_domain_name=Default
  [vmware]
  [vnc]
  enabled=False
  [workarounds]
  enable_numa_live_migration=False
  [wsgi]
  api_paste_config=api-paste.ini
  [xenserver]
  [xvp]
  [zvm]

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1831315/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to