settingsLogin | Registersettings

[openstack-dev] [tripleo][quickstart] Trying to create a release config for a Master UC and Newton OC

0 votes

Hello all,

I'm attempting save future contributors to the fast forward upgrades feature
some time by introducing a quickstart release config that deploys a Master UC
and Newton OC:

config: Provide a Master UC and Newton OC release config
https://review.openstack.org/#/c/511464/

This initial attempt did appear to work when I created the review some weeks ago
but now results in a Pike OC. I'm now trying to avoid this by adding repos,
repocmdbefore and repocmdafter as in other release configs without any
luck:

$ cat $WD/config/release/master-undercloud-newton-overcloud.yml
release: master
overcloudrelease: newton
undercloud
imageurl: https://images.rdoproject.org/master/delorean/current-tripleo/stable/undercloud.qcow2
ipa
imageurl: https://images.rdoproject.org/master/delorean/current-tripleo/stable/ironic-python-agent.tar
overcloud
imageurl: https://images.rdoproject.org/newton/delorean/consistent/stable/overcloud-full.tar
images:
- name: undercloud
url: "{{ undercloud
imageurl }}"
type: qcow2
- name: overcloud-full
url: "{{ overcloud
imageurl }}"
type: tar
- name: ipa
images
url: "{{ ipaimageurl }}"
type: tar

repos:
- type: file
filename: delorean.repo
down_url: https://trunk.rdoproject.org/centos7-newton/current/delorean.repo

repocmdbefore: |
sudo yum clean all;
sudo yum-config-manager --disable ""
sudo rm -rf /etc/yum.repos.d/delorean
;
sudo rm -rf /etc/yum.repos.d/*.rpmsave;

repocmdafter: |
sudo yum repolist;
sudo yum update -y

This still results in a Pike OC, with the original overcloud-full image on the
virthost originally using the Newton repos:

$ bash quickstart.sh -w $WD \
-t all \
-c config/generalconfig/minimal-keystone-only.yml \
-R master-undercloud-newton-overcloud \
-N config/nodes/1ctlr
keystone.yml $VIRTHOST
[..]
$ ssh -F $WD/ssh.config.ansible virthost
[..]
$ virt-cat -a overcloud-full.qcow2 /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean-instack-undercloud-61e201bd3cf65e931cc865a1018cf9441e50dab8
baseurl=https://trunk.rdoproject.org/centos7-newton/61/e2/61e201bd3cf65e931cc865a1018cf9441e50dab8_be559bb4
enabled=1
gpgcheck=0

$ ssh -F $WD/ssh.config.ansible undercloud
[..]
$ virt-cat -a overcloud-full.qcow2 /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean
baseurl=https://trunk.rdoproject.org/centos7-master/f4/42/f442a3aa35981c3d6d7e312599dde2a1b1d202c9_0468cca4/
gpgcheck=0
enabled=1
priority=20

$ ssh -F $WD/ssh.config.ansible overcloud-controller-0
[..]
$ cat /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean
baseurl=https://trunk.rdoproject.org/centos7-master/f4/42/f442a3aa35981c3d6d7e312599dde2a1b1d202c9_0468cca4/
gpgcheck=0
enabled=1
priority=20
$ grep keystone /var/log/yum.log
$

The weird thing is that the repo-setup role doesn't appear to run at all with
the above config. Something is obviously changing the repos and running yum update -y prior to the overcloud instances being provisioned but I can't seem
to track it down. Any suggestions would be really appreciated!

Thanks in advance,

Lee
--
Lee Yarwood A5D1 9385 88CB 7E5F BE64 6618 BCA6 6E33 F672 2D76


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

asked Nov 10, 2017 in openstack-dev by Lee_Yarwood (1,120 points)  

2 Responses

0 votes

On 01-11-17 18:50:23, Lee Yarwood wrote:
Hello all,

I'm attempting save future contributors to the fast forward upgrades feature
some time by introducing a quickstart release config that deploys a Master UC
and Newton OC:

config: Provide a Master UC and Newton OC release config
https://review.openstack.org/#/c/511464/

This initial attempt did appear to work when I created the review some weeks ago
but now results in a Pike OC. I'm now trying to avoid this by adding repos,
repocmdbefore and repocmdafter as in other release configs without any
luck:

$ cat $WD/config/release/master-undercloud-newton-overcloud.yml
release: master
overcloudrelease: newton
undercloud
imageurl: https://images.rdoproject.org/master/delorean/current-tripleo/stable/undercloud.qcow2
ipa
imageurl: https://images.rdoproject.org/master/delorean/current-tripleo/stable/ironic-python-agent.tar
overcloud
imageurl: https://images.rdoproject.org/newton/delorean/consistent/stable/overcloud-full.tar
images:
- name: undercloud
url: "{{ undercloud
imageurl }}"
type: qcow2
- name: overcloud-full
url: "{{ overcloud
imageurl }}"
type: tar
- name: ipa
images
url: "{{ ipaimageurl }}"
type: tar

repos:
- type: file
filename: delorean.repo
down_url: https://trunk.rdoproject.org/centos7-newton/current/delorean.repo

repocmdbefore: |
sudo yum clean all;
sudo yum-config-manager --disable ""
sudo rm -rf /etc/yum.repos.d/delorean
;
sudo rm -rf /etc/yum.repos.d/*.rpmsave;

repocmdafter: |
sudo yum repolist;
sudo yum update -y

This still results in a Pike OC, with the original overcloud-full image on the
virthost originally using the Newton repos:

$ bash quickstart.sh -w $WD \
-t all \
-c config/generalconfig/minimal-keystone-only.yml \
-R master-undercloud-newton-overcloud \
-N config/nodes/1ctlr
keystone.yml $VIRTHOST
[..]
$ ssh -F $WD/ssh.config.ansible virthost
[..]
$ virt-cat -a overcloud-full.qcow2 /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean-instack-undercloud-61e201bd3cf65e931cc865a1018cf9441e50dab8
baseurl=https://trunk.rdoproject.org/centos7-newton/61/e2/61e201bd3cf65e931cc865a1018cf9441e50dab8_be559bb4
enabled=1
gpgcheck=0

$ ssh -F $WD/ssh.config.ansible undercloud
[..]
$ virt-cat -a overcloud-full.qcow2 /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean
baseurl=https://trunk.rdoproject.org/centos7-master/f4/42/f442a3aa35981c3d6d7e312599dde2a1b1d202c9_0468cca4/
gpgcheck=0
enabled=1
priority=20

$ ssh -F $WD/ssh.config.ansible overcloud-controller-0
[..]
$ cat /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean
baseurl=https://trunk.rdoproject.org/centos7-master/f4/42/f442a3aa35981c3d6d7e312599dde2a1b1d202c9_0468cca4/
gpgcheck=0
enabled=1
priority=20
$ grep keystone /var/log/yum.log
$

The weird thing is that the repo-setup role doesn't appear to run at all with
the above config. Something is obviously changing the repos and running yum update -y prior to the overcloud instances being provisioned but I can't seem
to track it down. Any suggestions would be really appreciated!

I've not made any progress on this since my original post. I still can't
understand why the overcloud-full.qcow2 image uploaded to the undercloud and
then used by the overcloud has been modified. I've attempted to use
inject_images as suggested on #tripleo without any success.

If anyone does have any insight into this then please let me know, deploying a
master UC with Newton OC will save so much time for anyone looking to work on
FFU tasks for Queens!

Thanks again in advance,

Lee
--
Lee Yarwood A5D1 9385 88CB 7E5F BE64 6618 BCA6 6E33 F672 2D76


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

responded Nov 10, 2017 by Lee_Yarwood (1,120 points)  
0 votes

On 10-11-17 09:25:14, Lee Yarwood wrote:
On 01-11-17 18:50:23, Lee Yarwood wrote:

Hello all,

I'm attempting save future contributors to the fast forward upgrades feature
some time by introducing a quickstart release config that deploys a Master UC
and Newton OC:

config: Provide a Master UC and Newton OC release config
https://review.openstack.org/#/c/511464/

This initial attempt did appear to work when I created the review some weeks ago
but now results in a Pike OC. I'm now trying to avoid this by adding repos,
repocmdbefore and repocmdafter as in other release configs without any
luck:

$ cat $WD/config/release/master-undercloud-newton-overcloud.yml
release: master
overcloudrelease: newton
undercloud
imageurl: https://images.rdoproject.org/master/delorean/current-tripleo/stable/undercloud.qcow2
ipa
imageurl: https://images.rdoproject.org/master/delorean/current-tripleo/stable/ironic-python-agent.tar
overcloud
imageurl: https://images.rdoproject.org/newton/delorean/consistent/stable/overcloud-full.tar
images:
- name: undercloud
url: "{{ undercloud
imageurl }}"
type: qcow2
- name: overcloud-full
url: "{{ overcloud
imageurl }}"
type: tar
- name: ipa
images
url: "{{ ipaimageurl }}"
type: tar

repos:
- type: file
filename: delorean.repo
down_url: https://trunk.rdoproject.org/centos7-newton/current/delorean.repo

repocmdbefore: |
sudo yum clean all;
sudo yum-config-manager --disable ""
sudo rm -rf /etc/yum.repos.d/delorean
;
sudo rm -rf /etc/yum.repos.d/*.rpmsave;

repocmdafter: |
sudo yum repolist;
sudo yum update -y

This still results in a Pike OC, with the original overcloud-full image on the
virthost originally using the Newton repos:

$ bash quickstart.sh -w $WD \
-t all \
-c config/generalconfig/minimal-keystone-only.yml \
-R master-undercloud-newton-overcloud \
-N config/nodes/1ctlr
keystone.yml $VIRTHOST
[..]
$ ssh -F $WD/ssh.config.ansible virthost
[..]
$ virt-cat -a overcloud-full.qcow2 /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean-instack-undercloud-61e201bd3cf65e931cc865a1018cf9441e50dab8
baseurl=https://trunk.rdoproject.org/centos7-newton/61/e2/61e201bd3cf65e931cc865a1018cf9441e50dab8_be559bb4
enabled=1
gpgcheck=0

$ ssh -F $WD/ssh.config.ansible undercloud
[..]
$ virt-cat -a overcloud-full.qcow2 /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean
baseurl=https://trunk.rdoproject.org/centos7-master/f4/42/f442a3aa35981c3d6d7e312599dde2a1b1d202c9_0468cca4/
gpgcheck=0
enabled=1
priority=20

$ ssh -F $WD/ssh.config.ansible overcloud-controller-0
[..]
$ cat /etc/yum.repos.d/delorean.repo
[delorean]
name=delorean
baseurl=https://trunk.rdoproject.org/centos7-master/f4/42/f442a3aa35981c3d6d7e312599dde2a1b1d202c9_0468cca4/
gpgcheck=0
enabled=1
priority=20
$ grep keystone /var/log/yum.log
$

The weird thing is that the repo-setup role doesn't appear to run at all with
the above config. Something is obviously changing the repos and running yum update -y prior to the overcloud instances being provisioned but I can't seem
to track it down. Any suggestions would be really appreciated!

I've not made any progress on this since my original post. I still can't
understand why the overcloud-full.qcow2 image uploaded to the undercloud and
then used by the overcloud has been modified. I've attempted to use
inject_images as suggested on #tripleo without any success.

If anyone does have any insight into this then please let me know, deploying a
master UC with Newton OC will save so much time for anyone looking to work on
FFU tasks for Queens!

Thanks to Yolanda for pointing out that you also need to set
use_external_images: true when using inject_images.

useexternalimages: true
inject_images:
- "ironic-python-agent.initramfs"
- "ironic-python-agent.kernel"
- "overcloud-full.qcow2"
- "overcloud-full.initrd"
- "overcloud-full.vmlinuz"

Cheers,

Lee
--
Lee Yarwood A5D1 9385 88CB 7E5F BE64 6618 BCA6 6E33 F672 2D76


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

responded Nov 10, 2017 by Lee_Yarwood (1,120 points)  
...