subnets in AZ "" not found

Bug #1815696 reported by james beedy
6
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://paste.ubuntu.com/p/CJdjks3b5n/

Ceph was deployed with

$ juju deploy -n 3 ceph-mon --constraints "instance-type=t3.large root-disk=20G spaces=nat"

$ juju deploy -n 3 ceph-osd --storage osd-devices=ebs,32G,2 --storage osd-journals=ebs,8G,1 --constraints "instance-type=t3.large root-disk=20G spaces=nat"

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1815696] [NEW] subnets in AZ "" not found

Do you have a constraint on what spaces you want those units deployed to?

The code that is generating that error is:
func findSubnetIDsForAvailabilityZone(zoneName string, subnetsToZones
map[network.Id][]string) ([]string, error) {
        matchingSubnetIDs := set.NewStrings()
        for subnetID, zones := range subnetsToZones {
                zonesSet := set.NewStrings(zones...)
                if zonesSet.Contains(zoneName) {
                        matchingSubnetIDs.Add(string(subnetID))
                }
        }

        if matchingSubnetIDs.IsEmpty() {
                return nil, errors.NotFoundf("subnets in AZ %q", zoneName)
        }

        return matchingSubnetIDs.SortedValues(), nil
}

The zone name seems to come from:
availabilityZone, placementSubnetID, err :=
e.deriveAvailabilityZoneAndSubnetID(ctx, args)
which then has
haveVPCID := isVPCIDSet(e.ecfg().vpcID())
var subnetIDsForZone []string
var subnetErr error
if haveVPCID {
...
} else if args.Constraints.HasSpaces() {
subnetIDsForZone, subnetErr =
findSubnetIDsForAvailabilityZone(availabilityZone, args.SubnetsToZones)

I don't quite see how deriveAvailailabilityZoneAndSubnetId isn't returning
an error if the availabilityZone is the empty string. I do see lines like:
if availabilityZone == "" {
return "", "", errors.NotValidf("availability zone %q", availabilityZone)
}

This does feel like it is some sort of interaction with storage, as I see
these lines:
volumeAttachmentsZone, err := volumeAttachmentsZone(e.ec2, ctx,
args.VolumeAttachments)
if err != nil {
return "", "", errors.Trace(err)
}
placementZone, placementSubnetID, err := e.instancePlacementZone(ctx,
args.Placement, volumeAttachmentsZone)
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:
>
> First time I've seen this http://paste.ubuntu.com/p/CJdjks3b5n/
>
> Ceph was deployed with
>
> $ juju deploy -n 3 ceph-mon --constraints "instance-type=t3.large root-
> disk=20G spaces=nat"
>
> $ juju deploy -n 3 ceph-osd --storage osd-devices=ebs,32G,2 --storage
> osd-journals=ebs,8G,1 --constraints "instance-type=t3.large root-
> 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://bugs.launchpad.net/bugs/1815696
>
> Title:
> subnets in AZ "" not found
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1815696/+subscriptions
>

Changed in juju:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.