Bug 1657166
Summary: | Updating a bundle is a bit cumbersome | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Ivan Devat <idevat> | ||||||||
Component: | pcs | Assignee: | Ivan Devat <idevat> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | pkomarov | ||||||||
Severity: | urgent | Docs Contact: | |||||||||
Priority: | urgent | ||||||||||
Version: | 8.0 | CC: | abeekhof, cfeist, cluster-maint, cluster-qe, gouthamr, idevat, jpokorny, michele, mlisik, omular, pkomarov, tbarron, tojeline, wchadwic | ||||||||
Target Milestone: | rc | Keywords: | FutureFeature | ||||||||
Target Release: | 8.1 | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | pcs-0.10.2-2.el8 | Doc Type: | Enhancement | ||||||||
Doc Text: |
Feature:
An ability to update bundle to look exactly like specified.
Reason:
User (OpenStack) needs to update bundle by full specification but command `pcs bundle update` expects only changes.
Result:
New command `pcs bundle reset` was introduced.
|
Story Points: | --- | ||||||||
Clone Of: | 1598197 | Environment: | |||||||||
Last Closed: | 2019-11-05 20:39:38 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | 1682129 | ||||||||||
Bug Blocks: | |||||||||||
Attachments: |
|
After fix: [root@rhel81-node1 ~]# rpm -q pcs pcs-0.10.1-6.el8.x86_64 [root@rhel81-node1 ~]# pcs resource bundle create B1 container docker image=pcs:new promoted-max=2 [root@rhel81-node1 ~]# pcs cluster cib|grep 'id="B1"' -A2 <bundle id="B1"> <docker image="pcs:new" promoted-max="2"/> </bundle> [root@rhel81-node1 ~]# pcs resource bundle reset B1 container docker image=pcs:updated replicas=3 [root@rhel81-node1 ~]# pcs cluster cib|grep 'id="B1"' -A2 <bundle id="B1"> <docker image="pcs:updated" replicas="3"/> </bundle> Created attachment 1584811 [details]
additional fix
Created attachment 1584812 [details]
additional fix
After Fix [ant8 ~] $ rpm -q pcs pcs-0.10.2-2.el8.x86_64 [ant8 ~] $ pcs resource bundle create B1 container docker image=pcs:new promoted-max=2 port-map id=PM1 range=4000-4400 storage-map id=SM1 source-dir=/tmp/a target-dir=/tmp/b [ant8 ~] $ pcs resource bundle reset B1 container image=pcs:new promoted-max=2 port-map id=PM1 range=4000-4400 storage-map id=SM1 source-dir=/tmp/a target-dir=/tmp/b [ant8 ~] $ echo $? 0 Verified, [stack@undercloud-0 ~]$ ansible overcloud_nodes -mshell -b -a'rpm -q pcs' compute-1 | CHANGED | rc=0 >> pcs-0.10.2-2.el8.x86_64 compute-0 | CHANGED | rc=0 >> pcs-0.10.2-2.el8.x86_64 controller-1 | CHANGED | rc=0 >> pcs-0.10.2-2.el8.x86_64 controller-0 | CHANGED | rc=0 >> pcs-0.10.2-2.el8.x86_64 controller-2 | CHANGED | rc=0 >> pcs-0.10.2-2.el8.x86_64 [root@controller-1 ~]# pcs resource show galera-bundle|head -n 3 Warning: This command is deprecated and will be removed. Please use 'pcs resource config' instead. Bundle: galera-bundle Podman: image=192.168.24.1:8787/rhosp15/openstack-mariadb:pcmklatest masters=3 network=host options="--user=root --log-driver=journald -e KOLLA_CONFIG_STRATEGY=COPY_ALWAYS" replicas=3 run-command="/bin/bash /usr/local/bin/kolla_start" [root@controller-1 ~]# pcs resource bundle reset galera-bundle container image=192.168.24.1:8787/rhosp15/openstack-mariadb:pcmklatest masters=2 [root@controller-1 ~]# pcs resource show galera-bundle|head -n 3 Warning: This command is deprecated and will be removed. Please use 'pcs resource config' instead. Bundle: galera-bundle Podman: image=192.168.24.1:8787/rhosp15/openstack-mariadb:pcmklatest masters=2 [root@controller-1 ~]# pcs resource bundle reset galera-bundle container image=192.168.24.1:8787/rhosp15/openstack-mariadb:pcmklatest masters=3 Warning: container option 'masters' is deprecated and should not be used, use promoted-max instead [root@controller-1 ~]# pcs resource show galera-bundle|head -n 3 Warning: This command is deprecated and will be removed. Please use 'pcs resource config' instead. Bundle: galera-bundle Podman: image=192.168.24.1:8787/rhosp15/openstack-mariadb:pcmklatest masters=3 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:3311 |
Created attachment 1522204 [details] proposed fix [ant8 ~] $ pcs cluster cib|grep 'id="B1"' -A2 <bundle id="B1"> <docker image="pcs:test"/> </bundle> [ant8 ~] $ pcs resource bundle reset B1 container docker image=pcs:new [ant8 ~] $ pcs cluster cib|grep 'id="B1"' -A2 <bundle id="B1"> <docker image="pcs:new"/> </bundle>