install contrail failed if no kolla section existed in instances.yaml

Bug #1786745 reported by James Ren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Incomplete
High
James Ren
Trunk
Incomplete
High
James Ren

Bug Description

When I use the following instances.yaml to deploy contrail, the following error appears:

TASK [set_contrail_variables : get the internal VIP from internal_vip if haproxy is enabled] ***************************************************************************************************fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'kolla_internal_vip_address'\n\nThe error appears to have been in '/mnt/c/workspace/contrail-ansible-deployer/playbooks/roles/set_contrail_variables/tasks/main.yml': line 98, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n - always\n- name: get the internal VIP from internal_vip if haproxy is enabled\n ^ here\n"}

PLAY RECAP *************************************************************************************************************************************************************************************localhost : ok=30 changed=1 unreachable=0 failed=1

My instances.yaml

provider_config:
  bms:
    ssh_pwd: blade123
    ssh_user: root
    ntpserver: africa.pool.ntp.org
    domainsuffix: local
instances:
  centos1:
    provider: bms
    ip: &stack_ip 10.240.230.70
    roles:
      openstack:
  centos2:
    provider: bms
    ip: &tf_ip 10.240.230.100
    roles:
      config_database:
      config:
      control:
      analytics_database:
      analytics:
      webui:
  centos3:
    provider: bms
    ip: 10.240.230.80
    roles:
      vrouter:
        PHYSICAL_INTERFACE: enp47s0f1
        VROUTER_GATEWAY: 192.168.10.1
      openstack_compute:
global_configuration:
  CONTAINER_REGISTRY: 10.240.235.32:5000
  REGISTRY_PRIVATE_INSECURE: True
contrail_configuration:
  CONFIG_DTABASE_NODEMGR__DEFAULTS__minimum_diskGB: "2"
  CONFIG_NODEMGR__DEFAULTS__minimum_diskGB: "2"
  DATABASE_NODEMGR__DEFAULTS__minimum_diskGB: "2"
  CONTRAIL_VERSION: newton-dev
  CLOUD_ORCHESTRATOR: openstack
  RABBITMQ_NODE_PORT: 5673
  VROUTER_GATEWAY: 192.168.10.1
  PHYSICAL_INTERFACE: eno2
  CONTROLLER_NODES: *tf_ip
  CONTROL_NODES: 192.168.10.20
  AUTH_MODE: keystone
  KEYSTONE_AUTH_HOST: *stack_ip
  KEYSTONE_AUTH_URL_VERSION: /v3
  KEYSTONE_AUTH_ADMIN_USER: admin
  KEYSTONE_AUTH_ADMIN_PASSWORD: admin

James Ren (jamesvren)
information type: Proprietary → Public
Revision history for this message
Jeba Paulaiyan (jebap) wrote :

Please provide version tried, etc.

tags: added: contrail-networking provisioning
Revision history for this message
James Ren (jamesvren) wrote :

I used code based on latest R5.0 branch.

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.