diff options
Diffstat (limited to 'prototypes')
-rwxr-xr-x | prototypes/xci/config/env-vars | 1 | ||||
-rwxr-xr-x | prototypes/xci/config/pinned-versions | 8 | ||||
-rw-r--r-- | prototypes/xci/docs/developer-guide.rst | 31 | ||||
-rw-r--r-- | prototypes/xci/file/ansible-role-requirements.yml | 104 | ||||
-rw-r--r-- | prototypes/xci/file/ha/openstack_user_config.yml | 33 | ||||
-rw-r--r-- | prototypes/xci/file/mini/openstack_user_config.yml | 19 | ||||
-rw-r--r-- | prototypes/xci/file/noha/openstack_user_config.yml | 21 | ||||
-rw-r--r-- | prototypes/xci/file/setup-openstack.yml | 11 | ||||
-rw-r--r-- | prototypes/xci/playbooks/configure-opnfvhost.yml | 2 | ||||
-rw-r--r-- | prototypes/xci/var/opnfv.yml | 1 | ||||
-rwxr-xr-x | prototypes/xci/xci-deploy.sh | 4 |
11 files changed, 91 insertions, 144 deletions
diff --git a/prototypes/xci/config/env-vars b/prototypes/xci/config/env-vars index 052be2ace..cefb412a6 100755 --- a/prototypes/xci/config/env-vars +++ b/prototypes/xci/config/env-vars @@ -9,6 +9,7 @@ export OPENSTACK_OSA_ETC_PATH=/etc/openstack_deploy export CLEAN_DIB_IMAGES=false export OPNFV_HOST_IP=192.168.122.2 export XCI_FLAVOR_ANSIBLE_FILE_PATH=$OPNFV_RELENG_PATH/prototypes/xci/file/$XCI_FLAVOR +export CI_LOOP=${CI_LOOP:-daily} export JOB_NAME=${JOB_NAME:-false} # TODO: this currently matches to bifrost ansible version # there is perhaps better way to do this diff --git a/prototypes/xci/config/pinned-versions b/prototypes/xci/config/pinned-versions index 1cd33813c..e3b49c7d4 100755 --- a/prototypes/xci/config/pinned-versions +++ b/prototypes/xci/config/pinned-versions @@ -21,7 +21,7 @@ #------------------------------------------------------------------------------- # use releng from master until the development work with the sandbox is complete export OPNFV_RELENG_VERSION="master" -# HEAD of "master" as of 28.03.2017 -export OPENSTACK_BIFROST_VERSION=${OPENSTACK_BIFROST_VERSION:-"2600d546ed7116f5aad81972b0987a269f3c45b4"} -# HEAD of "master" as of 26.03.2017 -export OPENSTACK_OSA_VERSION=${OPENSTACK_OSA_VERSION:-"baba7b317a5898cd73b4a11c4ce364c7e2d3d77f"} +# HEAD of "master" as of 04.04.2017 +export OPENSTACK_BIFROST_VERSION=${OPENSTACK_BIFROST_VERSION:-"6109f824e5510e794dbf1968c3859e8b6356d280"} +# HEAD of "master" as of 04.04.2017 +export OPENSTACK_OSA_VERSION=${OPENSTACK_OSA_VERSION:-"d9e1330c7ff9d72a604b6b4f3af765f66a01b30e"} diff --git a/prototypes/xci/docs/developer-guide.rst b/prototypes/xci/docs/developer-guide.rst new file mode 100644 index 000000000..9a07b1267 --- /dev/null +++ b/prototypes/xci/docs/developer-guide.rst @@ -0,0 +1,31 @@ +######################### +OPNFV XCI Developer Guide +######################### + +This document will contain details about the XCI and how things are put +together in order to support different flavors and different distros in future. + +Document is for anyone who will + +- do hands on development with XCI such as new features to XCI itself or + bugfixes +- integrate new features +- want to know what is going on behind the scenes + +It will also have guidance regarding how to develop for the sandbox. + +If you are looking for User's Guide, please check README.rst in the root of +xci folder or take a look at +`Wiki <https://wiki.opnfv.org/display/INF/OpenStack>`_. + +=================================== +Components of XCI Developer Sandbox +=================================== + +TBD + +============= +Detailed Flow +============= + +TBD diff --git a/prototypes/xci/file/ansible-role-requirements.yml b/prototypes/xci/file/ansible-role-requirements.yml index 4faab1950..842bcc44c 100644 --- a/prototypes/xci/file/ansible-role-requirements.yml +++ b/prototypes/xci/file/ansible-role-requirements.yml @@ -7,199 +7,193 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +# these versions are extracted based on the osa commit d9e1330c7ff9d72a604b6b4f3af765f66a01b30e on 04.04.2017 +# https://review.openstack.org/gitweb?p=openstack/openstack-ansible.git;a=commit;h=d9e1330c7ff9d72a604b6b4f3af765f66a01b30e - name: apt_package_pinning scm: git src: https://git.openstack.org/openstack/openstack-ansible-apt_package_pinning - version: master + version: 364fc9fcd8ff652546c13d9c20ac808bc0e35f66 - name: pip_install scm: git src: https://git.openstack.org/openstack/openstack-ansible-pip_install - version: master + version: 793ae4d01397bd91ebe18e9670e8e27d1ae91960 - name: galera_client scm: git src: https://git.openstack.org/openstack/openstack-ansible-galera_client - version: master + version: c093c13e01826da545bf9a0259e0be441bc1b5e1 - name: galera_server scm: git src: https://git.openstack.org/openstack/openstack-ansible-galera_server - version: master + version: fd0a6b104a32badbe7e7594e2c829261a53bfb11 - name: ceph_client scm: git src: https://git.openstack.org/openstack/openstack-ansible-ceph_client - version: master + version: 9149bfa8e3c4284b656834ba7765ea3aa48bec2e - name: haproxy_server scm: git src: https://git.openstack.org/openstack/openstack-ansible-haproxy_server - version: master + version: 32415ab81c61083ac5a83b65274703e4a5470e5e - name: keepalived scm: git src: https://github.com/evrardjp/ansible-keepalived - version: master + version: 4f7c8eb16e3cbd8c8748f126c1eea73db5c8efe9 - name: lxc_container_create scm: git src: https://git.openstack.org/openstack/openstack-ansible-lxc_container_create - version: master + version: 097da38126d90cfca36cdc3955aaf658a00db599 - name: lxc_hosts scm: git src: https://git.openstack.org/openstack/openstack-ansible-lxc_hosts - version: master + version: 2931d0c87a1c592ad7f1f2f83cdcf468e8dea932 - name: memcached_server scm: git src: https://git.openstack.org/openstack/openstack-ansible-memcached_server - version: master + version: 58e17aa13ebe7b0aa5da7c00afc75d6716d2720d - name: openstack-ansible-security scm: git src: https://git.openstack.org/openstack/openstack-ansible-security - version: master + version: 9d745ec4fe8ac3e6d6cbb2412abe5196a9d2dad7 - name: openstack_hosts scm: git src: https://git.openstack.org/openstack/openstack-ansible-openstack_hosts - version: master + version: 2076dfddf418b1bdd64d3782346823902aa996bc - name: os_keystone scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_keystone - version: master + version: cee7a02143a1826479e6444c6fb5f1c2b6074ab7 - name: openstack_openrc scm: git src: https://git.openstack.org/openstack/openstack-ansible-openstack_openrc - version: master + version: fb98ad8d7bfe7fba0c964cb061313f1b8767c4b0 - name: os_aodh scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_aodh - version: master + version: 9dcacb8fd6feef02e485f99c83535707ae67876b - name: os_barbican scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_barbican - version: master + version: bb3f39cb2f3c31c6980aa65c8953ff6293b992c0 - name: os_ceilometer scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_ceilometer - version: master + version: 178ad8245fa019f0610c628c58c377997b011e8a - name: os_cinder scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_cinder - version: master + version: 1321fd39d8f55d1dc3baf91b4194469b349d7dc4 - name: os_glance scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_glance - version: master + version: f39ef212bfa2edff8334bfb632cc463001c77c11 - name: os_gnocchi scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_gnocchi - version: master + version: 318bd76e5e72402e8ff5b372b469c27a9395341b - name: os_heat scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_heat - version: master + version: 07d59ddb757b2d2557fba52ac537803e646e65b4 - name: os_horizon scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_horizon - version: master + version: 69ef49c4f7a42f082f4bcff824d13f57145e2b83 - name: os_ironic scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_ironic - version: master + version: 57e8a0eaaa2159f33e64a1b037180383196919d1 - name: os_magnum scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_magnum - version: master + version: 8329c257dff25686827bd1cc904506d76ad1d12f - name: os_trove scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_trove - version: master + version: b948402c76d6188caa7be376098354cdb850d638 - name: os_neutron scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_neutron - version: master + version: 2a92a4e1857e7457683aefd87ee5a4e751fc701a - name: os_nova scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_nova - version: master + version: 511963b7921ec7c2db24e8ee1d71a940b0aafae4 - name: os_rally scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_rally - version: master + version: 96153c5b3285d11d00611a03135c9d8f267e0f52 - name: os_sahara scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_sahara - version: master + version: 012d3f3530f878e5143d58380f94d1f514baad04 - name: os_swift scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_swift - version: master + version: d62d6a23ac0b01d0320dbcb6c710dfd5f3cecfdf - name: os_tempest scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_tempest - version: master + version: 9d2bfb09d1ebbc9102329b0d42de33aa321e57b1 - name: plugins scm: git src: https://git.openstack.org/openstack/openstack-ansible-plugins - version: master + version: 3d2e23bb7e1d6775789d7f65ce8a878a7ee1d3c7 - name: rabbitmq_server scm: git src: https://git.openstack.org/openstack/openstack-ansible-rabbitmq_server - version: master + version: 9b0ce64fe235705e237bc4b476ecc0ad602d67a8 - name: repo_build scm: git src: https://git.openstack.org/openstack/openstack-ansible-repo_build - version: master + version: fe3ae20f74a912925d5c78040984957a6d55f9de - name: repo_server scm: git src: https://git.openstack.org/openstack/openstack-ansible-repo_server - version: master + version: 7ea0820e0941282cd5c5cc263e939ffbee54ba52 - name: rsyslog_client scm: git src: https://git.openstack.org/openstack/openstack-ansible-rsyslog_client - version: master + version: 19615e47137eee46ee92c0308532fe1d2212333c - name: rsyslog_server scm: git src: https://git.openstack.org/openstack/openstack-ansible-rsyslog_server - version: master + version: efd7b21798da49802012e390a0ddf7cc38636eeb - name: sshd scm: git src: https://github.com/willshersystems/ansible-sshd - version: master + version: 426e11c4dffeca09fcc4d16103a91e5e65180040 - name: bird scm: git src: https://github.com/logan2211/ansible-bird - version: master + version: 2c4d29560d3617abddf0e63e0c95536364dedd92 - name: etcd scm: git src: https://github.com/logan2211/ansible-etcd - version: master + version: ef63b0c5fd352b61084fd5aca286ee7f3fea932b - name: unbound scm: git src: https://github.com/logan2211/ansible-unbound - version: master + version: 5329d03eb9c15373d648a801563087c576bbfcde - name: resolvconf scm: git src: https://github.com/logan2211/ansible-resolvconf - version: master + version: 3b2b7cf2e900b194829565b351bf32bb63954548 - name: os_designate scm: git src: https://git.openstack.org/openstack/openstack-ansible-os_designate - version: master + version: b7098a6bdea73c869f45a86e0cc78d21b032161e - name: ceph.ceph-common scm: git src: https://github.com/ceph/ansible-ceph-common - version: master + version: ef149767fa9565ec887f0bdb007ff752bd61e5d5 - name: ceph.ceph-docker-common scm: git src: https://github.com/ceph/ansible-ceph-docker-common - version: master + version: ca86fd0ef6d24aa2c750a625acdcb8012c374aa0 - name: ceph-mon scm: git src: https://github.com/ceph/ansible-ceph-mon - version: master + version: c5be4d6056dfe6a482ca3fcc483a6050cc8929a1 - name: ceph-osd scm: git src: https://github.com/ceph/ansible-ceph-osd - version: master -- name: os_octavia - scm: git - src: https://git.openstack.org/openstack/openstack-ansible-os_octavia - version: master -- name: os_molteniron - scm: git - src: https://git.openstack.org/openstack/openstack-ansible-os_molteniron - version: master + version: 7bc5a61ceb96e487b7a9fe9643f6dafa6492f2b5 diff --git a/prototypes/xci/file/ha/openstack_user_config.yml b/prototypes/xci/file/ha/openstack_user_config.yml index 43e88c0d0..0c43702cb 100644 --- a/prototypes/xci/file/ha/openstack_user_config.yml +++ b/prototypes/xci/file/ha/openstack_user_config.yml @@ -200,33 +200,6 @@ network_hosts: controller02: ip: 172.29.236.13 -# ceilometer (telemetry API) -metering-infra_hosts: - controller00: - ip: 172.29.236.11 - controller01: - ip: 172.29.236.12 - controller02: - ip: 172.29.236.13 - -# aodh (telemetry alarm service) -metering-alarm_hosts: - controller00: - ip: 172.29.236.11 - controller01: - ip: 172.29.236.12 - controller02: - ip: 172.29.236.13 - -# gnocchi (telemetry metrics storage) -metrics_hosts: - controller00: - ip: 172.29.236.11 - controller01: - ip: 172.29.236.12 - controller02: - ip: 172.29.236.13 - # nova hypervisors compute_hosts: compute00: @@ -234,12 +207,6 @@ compute_hosts: compute01: ip: 172.29.236.15 -# ceilometer compute agent (telemetry) -metering-compute_hosts: - compute00: - ip: 172.29.236.14 - compute01: - ip: 172.29.236.15 # cinder volume hosts (NFS-backed) # The settings here are repeated for each infra host. # They could instead be applied as global settings in diff --git a/prototypes/xci/file/mini/openstack_user_config.yml b/prototypes/xci/file/mini/openstack_user_config.yml index c41f4329d..70429cea9 100644 --- a/prototypes/xci/file/mini/openstack_user_config.yml +++ b/prototypes/xci/file/mini/openstack_user_config.yml @@ -144,30 +144,11 @@ network_hosts: controller00: ip: 172.29.236.11 -# ceilometer (telemetry API) -metering-infra_hosts: - controller00: - ip: 172.29.236.11 - -# aodh (telemetry alarm service) -metering-alarm_hosts: - controller00: - ip: 172.29.236.11 - -# gnocchi (telemetry metrics storage) -metrics_hosts: - controller00: - ip: 172.29.236.11 - # nova hypervisors compute_hosts: compute00: ip: 172.29.236.12 -# ceilometer compute agent (telemetry) -metering-compute_hosts: - compute00: - ip: 172.29.236.12 # cinder volume hosts (NFS-backed) # The settings here are repeated for each infra host. # They could instead be applied as global settings in diff --git a/prototypes/xci/file/noha/openstack_user_config.yml b/prototypes/xci/file/noha/openstack_user_config.yml index 999741580..05de6a9c1 100644 --- a/prototypes/xci/file/noha/openstack_user_config.yml +++ b/prototypes/xci/file/noha/openstack_user_config.yml @@ -144,21 +144,6 @@ network_hosts: controller00: ip: 172.29.236.11 -# ceilometer (telemetry API) -metering-infra_hosts: - controller00: - ip: 172.29.236.11 - -# aodh (telemetry alarm service) -metering-alarm_hosts: - controller00: - ip: 172.29.236.11 - -# gnocchi (telemetry metrics storage) -metrics_hosts: - controller00: - ip: 172.29.236.11 - # nova hypervisors compute_hosts: compute00: @@ -166,12 +151,6 @@ compute_hosts: compute01: ip: 172.29.236.13 -# ceilometer compute agent (telemetry) -metering-compute_hosts: - compute00: - ip: 172.29.236.12 - compute01: - ip: 172.29.236.13 # cinder volume hosts (NFS-backed) # The settings here are repeated for each infra host. # They could instead be applied as global settings in diff --git a/prototypes/xci/file/setup-openstack.yml b/prototypes/xci/file/setup-openstack.yml index bd5d5cd93..415c48993 100644 --- a/prototypes/xci/file/setup-openstack.yml +++ b/prototypes/xci/file/setup-openstack.yml @@ -20,17 +20,6 @@ - include: os-neutron-install.yml - include: os-heat-install.yml - include: os-horizon-install.yml -- include: os-ceilometer-install.yml -- include: os-aodh-install.yml -- include: os-designate-install.yml -#NOTE(stevelle) Ensure Gnocchi identities exist before Swift -- include: os-gnocchi-install.yml - when: - - gnocchi_storage_driver is defined - - gnocchi_storage_driver == 'swift' - vars: - gnocchi_identity_only: True - include: os-swift-install.yml -- include: os-gnocchi-install.yml - include: os-ironic-install.yml - include: os-tempest-install.yml diff --git a/prototypes/xci/playbooks/configure-opnfvhost.yml b/prototypes/xci/playbooks/configure-opnfvhost.yml index 06e27e7fc..8c794c422 100644 --- a/prototypes/xci/playbooks/configure-opnfvhost.yml +++ b/prototypes/xci/playbooks/configure-opnfvhost.yml @@ -54,8 +54,10 @@ replace: '\1haproxy_state: enabled' - name: copy OPNFV OpenStack playbook shell: "/bin/cp -rf {{OPNFV_RELENG_PATH}}/prototypes/xci/file/setup-openstack.yml {{OPENSTACK_OSA_PATH}}/playbooks" + # Copy pinned role requirements if we are running as part of daily CI loop - name: copy OPNFV role requirements shell: "/bin/cp -rf {{OPNFV_RELENG_PATH}}/prototypes/xci/file/ansible-role-requirements.yml {{OPENSTACK_OSA_PATH}}" + when: XCI_LOOP == "daily" - hosts: localhost remote_user: root tasks: diff --git a/prototypes/xci/var/opnfv.yml b/prototypes/xci/var/opnfv.yml index dd3761bd1..12cb55675 100644 --- a/prototypes/xci/var/opnfv.yml +++ b/prototypes/xci/var/opnfv.yml @@ -20,5 +20,6 @@ OPENSTACK_OSA_ETC_PATH: "{{ lookup('env','OPENSTACK_OSA_ETC_PATH') }}" XCI_ANSIBLE_PIP_VERSION: "{{ lookup('env','XCI_ANSIBLE_PIP_VERSION') }}" XCI_FLAVOR: "{{ lookup('env','XCI_FLAVOR') }}" XCI_FLAVOR_ANSIBLE_FILE_PATH: "{{ lookup('env','XCI_FLAVOR_ANSIBLE_FILE_PATH') }}" +XCI_LOOP: "{{ lookup('env','XCI_LOOP') }}" LOG_PATH: "{{ lookup('env','LOG_PATH') }}" OPNFV_HOST_IP: "{{ lookup('env','OPNFV_HOST_IP') }}" diff --git a/prototypes/xci/xci-deploy.sh b/prototypes/xci/xci-deploy.sh index da5bb26cf..2fd9be022 100755 --- a/prototypes/xci/xci-deploy.sh +++ b/prototypes/xci/xci-deploy.sh @@ -70,7 +70,9 @@ cd $XCI_PATH/playbooks ansible-playbook $ANSIBLE_VERBOSITY -i inventory provision-vm-nodes.yml echo "-----------------------------------------------------------------------" echo "Info: VM nodes are provisioned!" - +source $OPENSTACK_BIFROST_PATH/env-vars +ironic node-list +echo #------------------------------------------------------------------------------- # Configure localhost #------------------------------------------------------------------------------- |