Juju status with selector matching on ports substring

Bug #1988709 reported by Haw Loeung
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Vitaly Antonenko

Bug Description

Hi,

Juju status incorrectly matches on the open "Ports". For example, if you have a bunch of machines with 5666/tcp for NRPE, "juju status 566" matches them all.

I found out by running "juju status 19 21 26" and it returned machine 6. This was because machine 6 had 19103/tcp as one of it's open ports.

If it's a planned feature, it's a silly one and undocumented:

"""
<selector> selects machines, units or applications from the model to display.
Wildcard characters (*) enable multiple entities to be matched at the same
time.
"""

Tags: ui
Revision history for this message
Ian Booth (wallyworld) wrote :

status filtering has always been somewhat hit and miss sadly

Changed in juju:
milestone: none → 2.9.35
tags: added: ui
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
Changed in juju:
assignee: nobody → Vitaly Antonenko (anvial)
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Vitaly Antonenko (anvial) wrote :
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
Haw Loeung (hloeung) wrote :

"""
juju status 707
juju status 7070
juju status 7070/t

707 selector shouldn't show the status of the parca unit
7070 and 7070/t selectors should show the status of the parca unit
"""

I feel that "juju status 7070" shouldn't return machine with port 7070. In fact, I think if we wanted it to return machines with specific ports, it should be something like "juju status tcp/7070" or "juju status udp/7070".

My reasoning is this, say we have machine 80 and all we wanted was that. A user would probably use "juju status 80" but little do they know, they now also get all units with "tcp/80" exposed.

Changed in juju:
status: Fix Released → New
Changed in juju:
status: New → Triaged
Haw Loeung (hloeung)
Changed in juju:
milestone: 2.9.35 → 2.9.37
Changed in juju:
milestone: 2.9.37 → 2.9.38
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Vitaly Antonenko (anvial) wrote :
Revision history for this message
Vitaly Antonenko (anvial) wrote :

Now we correctly operate with port ranges, and we need to fully specify protocol to filter by ports

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.