subnets in AZ "" not found
Bug #1815696 reported by
james beedy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Undecided
|
Unassigned |
Bug Description
First time I've seen this http://
Ceph was deployed with
$ juju deploy -n 3 ceph-mon --constraints "instance-
$ juju deploy -n 3 ceph-osd --storage osd-devices=
Changed in juju: | |
status: | New → Incomplete |
To post a comment you must log in.
Do you have a constraint on what spaces you want those units deployed to?
The code that is generating that error is: rAvailabilityZo ne(zoneName string, subnetsToZones Id][]string) ([]string, error) {
matchingSubnet IDs := set.NewStrings()
zonesSet := set.NewStrings( zones.. .) Contains( zoneName) {
matchingSubn etIDs.Add( string( subnetID) )
func findSubnetIDsFo
map[network.
for subnetID, zones := range subnetsToZones {
if zonesSet.
}
}
if matchingSubnetI Ds.IsEmpty( ) {
return nil, errors. NotFoundf( "subnets in AZ %q", zoneName)
}
return matchingSubnetI Ds.SortedValues (), nil
}
The zone name seems to come from: ilityZoneAndSub netID(ctx, args) e.ecfg( ).vpcID( )) s.HasSpaces( ) { rAvailabilityZo ne(availability Zone, args.SubnetsToZ ones)
availabilityZone, placementSubnetID, err :=
e.deriveAvailab
which then has
haveVPCID := isVPCIDSet(
var subnetIDsForZone []string
var subnetErr error
if haveVPCID {
...
} else if args.Constraint
subnetIDsForZone, subnetErr =
findSubnetIDsFo
I don't quite see how deriveAvailaila bilityZoneAndSu bnetId isn't returning NotValidf( "availability zone %q", availabilityZone)
an error if the availabilityZone is the empty string. I do see lines like:
if availabilityZone == "" {
return "", "", errors.
}
This does feel like it is some sort of interaction with storage, as I see tsZone, err := volumeAttachmen tsZone( e.ec2, ctx, chments) mentZone( ctx, tsZone)
these lines:
volumeAttachmen
args.VolumeAtta
if err != nil {
return "", "", errors.Trace(err)
}
placementZone, placementSubnetID, err := e.instancePlace
args.Placement, volumeAttachmen
if err != nil {
return "", "", errors.Trace(err)
}
and given the name of the applications includes "ceph".
John
=:->
On Wed, Feb 13, 2019 at 5:11 AM james beedy <email address hidden> wrote:
> Public bug reported: paste.ubuntu. com/p/CJdjks3b5 n/ type=t3. large root- ebs,32G, 2 --storage ebs,8G, 1 --constraints "instance- type=t3. large root- /bugs.launchpad .net/bugs/ 1815696 /bugs.launchpad .net/juju/ +bug/1815696/ +subscriptions
>
> First time I've seen this http://
>
> Ceph was deployed with
>
> $ juju deploy -n 3 ceph-mon --constraints "instance-
> disk=20G spaces=nat"
>
> $ juju deploy -n 3 ceph-osd --storage osd-devices=
> osd-journals=
> disk=20G spaces=nat"
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https:/
>
> Title:
> subnets in AZ "" not found
>
> To manage notifications about this bug go to:
> https:/
>