Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1917552

Summary: [cephadm] 5.0 - ceph orch upgrade start --ceph-version <version> is not updating to the latest after specifying the build version
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Preethi <pnataraj>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED WONTFIX QA Contact: Vasishta <vashastr>
Severity: high Docs Contact: Karen Norteman <knortema>
Priority: high    
Version: 5.0CC: kdreyer
Target Milestone: ---   
Target Release: 5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-16 12:55:08 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:

Description Preethi 2021-01-18 17:39:58 UTC
Description of problem:[cephadm] 5.0 - ceph orch upgrade start --ceph-version <version> is not updating to the latest after specifying the build version


Version-Release number of selected component (if applicable):
[ubuntu@magna061 ~]$ sudo cephadm version
Using recent ceph image registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest
ceph version 16.0.0-7953.el8cp (aac7c5c7d5f82d2973c366730f65255afd66e515) pacific (dev)
[ubuntu@magna061 ~]$ rpm -qa | grep cephadm
cephadm-16.0.0-7953.el8cp.noarch


How reproducible:


Steps to Reproduce:
1. Install 5.0 cluster 
2. Perform upgrade to the latest ceph version using ceph orch upgrade command as below
ceph orch upgrade start --ceph-version <version>
3. observe the behaviour

Actual results: 

[ceph: root@magna061 /]# ceph orch upgrade start --ceph-version 16.0.0-8633
Error EINVAL: version must be in the form X.Y.Z (e.g., 15.2.3)
[ceph: root@magna061 /]# ceph orch upgrade start --ceph-version 16.0.0     
Initiating upgrade to registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:v16.0.0
[ceph: root@magna061 /]# ceph -s
  cluster:
    id:     a2a63eea-51b8-11eb-889f-002590fbd650
    health: HEALTH_OK
 
  services:
    mon: 5 daemons, quorum magna061,magna064,magna066,magna063,magna065 (age 10d)
    mgr: magna061.codfuh(active, since 10d), standbys: magna063.zohfew
    osd: 17 osds: 17 up (since 6d), 17 in (since 6d)
    rgw: 2 daemons active (myrealm1.myzone1.magna063.jpljqe, myrealm1.myzone1.magna064.rribai)
 
  data:
    pools:   6 pools, 137 pgs
    objects: 394 objects, 38 KiB
    usage:   2.2 GiB used, 15 TiB / 15 TiB avail
    pgs:     137 active+clean
 
  io:
    client:   2.2 KiB/s rd, 4 op/s rd, 0 op/s wr
 
  progress:
 
[ceph: root@magna061 /]# ceph orch upgrade status
{
    "target_image": "registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:v16.0.0",
    "in_progress": true,
    "services_complete": [],
    "message": ""
}
[ceph: root@magna061 /]# 

[ceph: root@magna061 /]# ceph orch upgrade status
{
    "target_image": "registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:v16.0.0",
    "in_progress": true,
    "services_complete": [],
    "message": "Error: UPGRADE_FAILED_PULL: Upgrade: failed to pull target image"
}
[ceph: root@magna061 /]# 

[ceph: root@magna061 /]# ceph status
  cluster:
    id:     a2a63eea-51b8-11eb-889f-002590fbd650
    health: HEALTH_WARN
            Upgrade: failed to pull target image
 
  services:
    mon: 5 daemons, quorum magna061,magna064,magna066,magna063,magna065 (age 10d)
    mgr: magna061.codfuh(active, since 10d), standbys: magna063.zohfew
    osd: 17 osds: 17 up (since 6d), 17 in (since 6d)
    rgw: 2 daemons active (myrealm1.myzone1.magna063.jpljqe, myrealm1.myzone1.magna064.rribai)
 
  data:
    pools:   6 pools, 137 pgs
    objects: 394 objects, 38 KiB
    usage:   2.2 GiB used, 15 TiB / 15 TiB avail
    pgs:     137 active+clean
 
  io:
    client:   5.5 KiB/s rd, 10 op/s rd, 0 op/s wr
 
  progress:
 
[ceph: root@magna061 /]# 





Expected results:
update to the latest ceph version should be successful

Additional info: magna061

Comment 2 Ken Dreyer (Red Hat) 2021-01-22 16:58:07 UTC
We do not tag container images according to the Ceph upstream version number, and I have no plans to do this.

We could remove the --ceph-version option in RH Ceph Storage downstream so users do not try to use it.

Comment 3 Preethi 2021-01-25 06:56:05 UTC
@Ken, Thanks for the info. We can update the doc and close the bug as --ceph-version is not supported.

Comment 4 Ken Dreyer (Red Hat) 2021-01-25 20:01:37 UTC
JuanMi, is it worthwhile to disable the --ceph-version option in the downstream cephadm code?

Comment 5 Juan Miguel Olmo 2021-02-16 12:55:08 UTC
I think that start enabling/disabling things depending if we are in upstream/downstream is not a good idea. In my view this must be resolved just with the right comments and instructions in the documentation.