Updates RPM specs and building 23/40023/4
authorTim Rozet <trozet@redhat.com>
Wed, 23 Aug 2017 18:08:07 +0000 (14:08 -0400)
committerTim Rozet <trozet@redhat.com>
Thu, 24 Aug 2017 17:46:14 +0000 (13:46 -0400)
Changes Include:
 - Disables ONOS from rpm and image building
 - Fixes opnfv-apex package dependency for python34-opnfv-apex
 - Updates requirements for python34-opnfv-apex
 - Updates docs
 - Removes temporary build qcow2 for odl which was being bundled
   into our dev tars unnecessarily

Change-Id: Ief668067181fc35a54553ae118b7950bddce1940
Signed-off-by: Tim Rozet <trozet@redhat.com>
build/Makefile
build/overcloud-opendaylight.sh
build/rpm_specs/opnfv-apex-common.spec
build/rpm_specs/opnfv-apex.spec
docs/release/installation/baremetal.rst
lib/ansible/playbooks/build_dependencies.yml
requirements.txt

index 74e7265..edc5832 100644 (file)
@@ -30,7 +30,7 @@ export QUAGGA_RPMS_DIR = $(QUAGGA_BUILD_DIR)/rpmbuild
 export RPM_DIR_ARGS = -D '_topdir $(BUILD_DIR)' -D '_builddir $(BUILD_DIR)' -D '_sourcedir $(BUILD_DIR)' -D '_rpmdir $(BUILD_DIR)' -D '_specdir $(BUILD_DIR)' -D '_srcrpmdir $(BUILD_DIR)'
 
 export RPMREL = $(BUILD_DIR)/noarch/opnfv-apex-release-$(RPMVERS)-$(shell echo ${RELEASE} | tr -d '_-').noarch.rpm
-export RPMCOM = $(BUILD_DIR)/noarch/opnfv-apex-common-$(RPMVERS)-$(shell echo ${RELEASE} | tr -d '_-').noarch.rpm
+export RPMCOM = $(BUILD_DIR)/noarch/python34-opnfv-apex-$(RPMVERS)-$(shell echo ${RELEASE} | tr -d '_-').noarch.rpm
 export RPMUDR = $(BUILD_DIR)/noarch/opnfv-apex-undercloud-$(RPMVERS)-$(shell echo ${RELEASE} | tr -d '_-').noarch.rpm
 export RPMODL = $(BUILD_DIR)/noarch/opnfv-apex-$(RPMVERS)-$(shell echo ${RELEASE} | tr -d '_-').noarch.rpm
 export RPMONO = $(BUILD_DIR)/noarch/opnfv-apex-onos-$(RPMVERS)-$(shell echo ${RELEASE} | tr -d '_-').noarch.rpm
@@ -49,13 +49,13 @@ clean-cache:
        rm -rf $(CACHE_DIR)
 
 .PHONY: images
-images: undercloud overcloud-full overcloud-opendaylight overcloud-onos
+images: undercloud overcloud-full overcloud-opendaylight
 
 .PHONY: rpms
-rpms: images common-rpm undercloud-rpm opendaylight-rpm onos-rpm
+rpms: images common-rpm undercloud-rpm opendaylight-rpm
 
 .PHONY: rpms-check
-rpms-check: release-rpm-check common-rpm-check undercloud-rpm-check opendaylight-rpm-check onos-rpm-check
+rpms-check: release-rpm-check common-rpm-check undercloud-rpm-check opendaylight-rpm-check
 
 .PHONY: rpms-clean
 rpms-clean:
@@ -271,8 +271,17 @@ iso:       iso-clean images rpms $(CENTISO)
        @ln $(RPMUDR) $(BUILD_DIR)/centos/Packages
        @ln $(RPMODL) $(BUILD_DIR)/centos/Packages
        # add packages to the centos packages
-       cd $(BUILD_DIR)/centos/Packages && yumdownloader openvswitch jq python34 python34-libs python34-PyYAML python34-setuptools ipxe-roms-qemu python34-jinja2 python34-markupsafe python2-virtualbmc python-pbr python-prettytable python-pyghmi python-crypto libvirt-python
+       cd $(BUILD_DIR)/centos/Packages && yumdownloader openvswitch jq python34 python34-libs python34-PyYAML python34-setuptools ipxe-roms-qemu python34-jinja2 python34-markupsafe
        cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python3-ipmi-0.3.0-1.noarch.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-asn1crypto-0.22.0-1.el7.centos.noarch.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-cryptography-2.0.3-1.el7.centos.x86_64.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-iptables-0.12.0-1.el7.centos.x86_64.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-libvirt-3.6.0-1.el7.centos.x86_64.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-pbr-3.1.1-1.el7.centos.x86_64.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-PrettyTable-0.7.2-1.el7.centos.noarch.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-pycrypto-2.6.1-1.el7.centos.x86_64.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-pyghmi-1.0.22-1.el7.centos.noarch.rpm
+       cd $(BUILD_DIR)/centos/Packages && curl -O http://artifacts.opnfv.org/apex/dependencies/python34-virtualbmc-1.2.0-1.el7.centos.noarch.rpm
        # regenerate yum repo data
        @echo "Generating new yum metadata"
        createrepo --update -g $(BUILD_ROOT)/c7-opnfv-x86_64-comps.xml $(BUILD_DIR)/centos
index 775fcbf..96b43d8 100755 (executable)
@@ -102,4 +102,5 @@ LIBGUESTFS_BACKEND=direct virt-customize \
 fi
 
 LIBGUESTFS_BACKEND=direct virt-sparsify --compress overcloud-full-opendaylight_build.qcow2 overcloud-full-opendaylight.qcow2
+rm -f overcloud-full-opendaylight_build.qcow2
 popd > /dev/null
index 42bc42f..37e3214 100644 (file)
@@ -1,6 +1,6 @@
 %global srcname opnfv-apex
 
-Name:          python3-%{srcname}
+Name:          python34-%{srcname}
 Version:       5.0
 Release:       %{_release}
 Summary:       Scripts for OPNFV deployment using Apex
@@ -12,10 +12,11 @@ Source0:    opnfv-apex-common.tar.gz
 
 BuildArch:      noarch
 BuildRequires:  python-docutils python34-devel
-Requires:       opnfv-apex-sdn opnfv-apex-undercloud openvswitch qemu-kvm bridge-utils libguestfs-tools libvirt-python
-Requires:       initscripts net-tools iputils iproute iptables python34 python34-yaml python34-jinja2 python3-ipmi python2-virtualbmc
+Requires:       opnfv-apex-sdn opnfv-apex-undercloud openvswitch qemu-kvm bridge-utils libguestfs-tools python34-libvirt
+Requires:       initscripts net-tools iputils iproute iptables python34 python34-yaml python34-jinja2 python3-ipmi python34-virtualbmc
 Requires:       ipxe-roms-qemu >= 20160127-1
-Requires:       libvirt-devel
+Requires:       libvirt-devel ansible
+Requires:       python34-iptables python34-cryptography python34-pbr
 
 %description
 Scripts for OPNFV deployment using Apex
@@ -112,6 +113,8 @@ install config/inventory/pod_example_settings.yaml %{buildroot}%{_docdir}/opnfv/
 %doc %{_docdir}/opnfv/inventory.yaml.example
 
 %changelog
+* Wed Aug 23 2017 Tim Rozet <trozet@redhat.com> - 5.0-5
+- Updated requirements
 * Mon Aug 14 2017 Tim Rozet <trozet@redhat.com> - 5.0-4
 - Updated for python refactoring
 * Mon May 08 2017 Dan Radez <dradez@redhat.com> - 5.0-3
index 1e7c562..fdda302 100644 (file)
@@ -10,7 +10,7 @@ Source0:      opnfv-apex.tar.gz
 
 Provides:      opnfv-apex-sdn
 BuildArch:     noarch
-Requires:      opnfv-apex-common opnfv-apex-undercloud
+Requires:      python34-opnfv-apex opnfv-apex-undercloud
 
 %description
 Overcloud Disk images for OPNFV Apex OpenDaylight deployment
@@ -34,6 +34,8 @@ install build/overcloud-full.initrd  %{buildroot}%{_var}/opt/opnfv/images/
 %{_var}/opt/opnfv/images/overcloud-full.initrd
 
 %changelog
+* Wed Aug 23 2017 Tim Rozet <trozet@redhat.com> - 5.0-3
+- Updated requirements
 * Fri May 26 2017 Tim Rozet <trozet@redhat.com> - 5.0-2
 - Fixes missing ramdisk and kernel
 * Tue Apr 04 2017 Dan Radez <dradez@redhat.com> - 5.0-1
index 5ac0587..c6ab9e8 100644 (file)
@@ -124,22 +124,22 @@ Install Bare Metal Jumphost
 
     ``sudo yum install opnfv-apex``
 
-    If ONOS will be used, install the ONOS rpm instead of the opnfv-apex rpm.
-
-    ``sudo yum install opnfv-apex-onos``
-
 2c. If you choose not to use the Apex yum repo or you choose to use
     pre-released RPMs you can download and install the required RPMs from the
     artifacts site <http://artifacts.opnfv.org/apex.html>. The following RPMs
     are available for installation:
 
-    - opnfv-apex                  - OpenDaylight L2 / L3 and ODL SFC support *
-    - opnfv-apex-onos             - ONOS support *
-    - opnfv-apex-undercloud       - (reqed) Undercloud Image
-    - opnfv-apex-common           - (reqed) Supporting config files and scripts
-    - python34-markupsafe         - (reqed) Dependency of opnfv-apex-common **
-    - python3-jinja2              - (reqed) Dependency of opnfv-apex-common **
-    - python3-ipmi                - (reqed) Dependency of opnfv-apex-common **
+    - opnfv-apex                 - OpenDaylight, OVN, and nosdn support *
+    - opnfv-apex-undercloud      - (reqed) Undercloud Image
+    - python34-opnfv-apex        - (reqed) OPNFV Apex Python package
+    - python34-markupsafe        - (reqed) Dependency of python34-opnfv-apex **
+    - python34-jinja2            - (reqed) Dependency of python34-opnfv-apex **
+    - python3-ipmi               - (reqed) Dependency of python34-opnfv-apex **
+    - python34-pbr               - (reqed) Dependency of python34-opnfv-apex **
+    - python34-virtualbmc        - (reqed) Dependency of python34-opnfv-apex **
+    - python34-iptables          - (reqed) Dependency of python34-opnfv-apex **
+    - python34-cryptography      - (reqed) Dependency of python34-opnfv-apex **
+    - python34-libvirt           - (reqed) Dependency of python34-opnfv-apex **
 
     \* One or more of these RPMs is required
     Only one of opnfv-apex or opnfv-apex-onos is required. It is safe to leave
@@ -162,7 +162,7 @@ Install Bare Metal Jumphost
     ``sudo yum install python34-markupsafe-<version>.rpm
     python3-jinja2-<version>.rpm python3-ipmi-<version>.rpm``
     ``sudo yum install opnfv-apex-<version>.rpm
-    opnfv-apex-undercloud-<version>.rpm opnfv-apex-common-<version>.rpm``
+    opnfv-apex-undercloud-<version>.rpm python34-opnfv-apex-<version>.rpm``
 
 3.  After the operating system and the opnfv-apex RPMs are installed, login to
     your Jumphost as root.
index afe12b7..1a7e6c9 100644 (file)
@@ -6,13 +6,11 @@
         name: 'https://www.rdoproject.org/repos/rdo-release.rpm'
     - name: Add dependency packages
       yum:
-        name: python34,python34-devel,python34-jinja2,
-              python34-markupsafe, python2-virtualbmc,
+        name: python34,python34-devel,python34-jinja2,python34-markupsafe,
               libguestfs-tools,bsdtar,libvirt,yum-utils,
-              python2-oslo-config,python2-debtcollector,
               make, python34-pip, python-virtualenv,libguestfs-tools-c,
               supermin,supermin5,perl-Sys-Guestfs,python-libguestfs,
-              libvirt-devel,python34-docutils,python-docutils
+              libvirt-devel,python34-docutils
     - name: Install Virtualization group
       yum:
         name: "@Virtualization Host"
@@ -28,3 +26,7 @@
     - pip:
         name: pygerrit2
         executable: pip3.4
+    - name: Add python2 pbr only for networking-vpp build
+      pip:
+        name: pbr
+        executable: pip2
index af2a106..617ec23 100644 (file)
@@ -2,11 +2,9 @@
 # of appearance. Changing the order has an impact on the overall integration
 # process, which may cause wedges in the gate later.
 pbr!=2.1.0,>=2.0.0 # Apache-2.0
-
 libvirt-python
 python-iptables
 virtualbmc
-PyYAML
 cryptography
 python-ipmi
 PyYAML