Bug 1946462

Summary: [cephadm]: Improved error message for specifying network in spec file
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tejas <tchandra>
Component: CephadmAssignee: Daniel Pivonka <dpivonka>
Status: CLOSED ERRATA QA Contact: Tejas <tchandra>
Severity: low Docs Contact: Karen Norteman <knortema>
Priority: unspecified    
Version: 5.0CC: jolmomar, kdreyer, sewagner, tserlin, vereddy, vimishra
Target Milestone: ---   
Target Release: 5.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-16.2.0-20.el8cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 08:29:34 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 Tejas 2021-04-06 07:58:31 UTC
This error message is misleading 

service_type: rgw
service_id: india
placement:
  hosts:
    - ceph-tejas-1616579452828-node9-client
rgw_frontend_port: 8083
networks: 10.0.208.0/22
using the above spec file , the error is "/]# ceph orch apply -i rgw1.yaml 
Error EINVAL: Cannot parse network 1: '1' does not appear to be an IPv4 or IPv6 network

This BZ is for the below PR.
PR:
https://github.com/ceph/ceph/pull/40552

Comment 1 Daniel Pivonka 2021-04-06 15:12:03 UTC
upstream tracker issue: https://tracker.ceph.com/issues/50102
upstream fix PR: https://github.com/ceph/ceph/pull/40552

Comment 2 Daniel Pivonka 2021-04-16 17:08:24 UTC
fix merged into upstream master

Comment 9 Veera Raghava Reddy 2021-06-02 13:59:22 UTC
When trying to apply using a spec file with unknown host, the error is showing the message "Unknown Hosts"

[ceph: root@magna011 /]# ceph orch apply -i rgw1.yaml
Error EINVAL: Cannot place <RGWSpec for service_name=rgw.india> on magna010: Unknown hosts


Verified with ceph version 16.2.0-46.el8cp (66a64d4057b4d63ac87706a71f1a92d88d700515) pacific (stable)

Comment 11 errata-xmlrpc 2021-08-30 08:29:34 UTC
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 (Red Hat Ceph Storage 5.0 bug fix and enhancement), 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/RHBA-2021:3294