addressable containers cannot resolve non-FQDN in maas

Bug #1445063 reported by Dimiter Naydenov
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Frank Mueller
1.23
Fix Released
Critical
Dimiter Naydenov
1.24
Fix Released
High
Frank Mueller

Bug Description

In 1.23 the addressable containers created by juju (both LXC and KVM) have a modified /etc/resolv.conf (as seen inside the container's rootfs) which contains any "nameserver" directives, but does NOT contain a default "search" domain. This breaks charms deployed in addressable containers in MAAS (esp. in restrictive networks). It was discovered while testing 1.23.0 proposed release in UOSCI.

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Fix is being tested in the environment in question and once confirmed will be proposed for merging.

Changed in juju-core:
status: In Progress → Triaged
importance: Critical → High
assignee: Dimiter Naydenov (dimitern) → nobody
Ryan Beisner (1chb1n)
tags: added: openstack uosci
description: updated
Revision history for this message
Ryan Beisner (1chb1n) wrote :

Example:

The bare metal fully qualified host name is myserver.mydomain.

With all other things being sound with regards to forward and reverse name resolution, dns and dhcp, we found that the search mydomain bit was not propagated to resolv.conf within lxc containers on the same host.

Juju tried and failed to resolve the host as simply myserver because of this missing search option in the lxc container's resolv.conf.

This appears to affect 1.23.0. We've not observed that issue when using 1.22.0.

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Fix for 1.23 proposed with https://github.com/juju/juju/pull/2090

Revision history for this message
Ryan Beisner (1chb1n) wrote :
Revision history for this message
Ryan Beisner (1chb1n) wrote :

That appears to have resolved the resolv.conf search entry issue. But now I think we are seeing a separate issue, where an lxc container isn't reachable except from the machine which is hosting that lxc container.

ubuntu@1ea-trusty032743:~/tools/openstack-charm-testing⟫ nc -w 2 10.245.168.64 22
1 ubuntu@1ea-trusty032743:~/tools/openstack-charm-testing⟫ juju ssh 1 "nc -w 2 10.245.168.64 22"
Warning: Permanently added '10.245.168.18' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.245.168.19' (ECDSA) to the list of known hosts.
SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
Connection to 10.245.168.19 closed.

David Britton (dpb)
tags: added: cloud-installer landscape
Revision history for this message
Dimiter Naydenov (dimitern) wrote :

I can confirm I was able to ping the containers both from inside the environment and outside (as well as other charms on the same host) so it's not a routing problem. It might be a MTU issue.

Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Ryan, since you verified the original issue is solved, can you please file a bug about this separate issue with neutron-api and provide more details what you've observed and diagnosed?

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Yes, kicked of a new deploy to reproduce. Will file and link a separate bug. Thank you!

Revision history for this message
Ryan Beisner (1chb1n) wrote :

FYI, that other suspected issue was not successfully reproduced, no bug to reference.

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.24-alpha1 → 1.25.0
Changed in juju-core:
assignee: nobody → Frank Mueller (themue)
status: Triaged → In Progress
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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