open-port should support port ranges

Bug #845616 reported by Ahmed Kamal
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Confirmed
Undecided
Unassigned
pyjuju
Confirmed
Wishlist
Unassigned

Bug Description

example:
open-port 55550-55559/tcp

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Some services will even be designed to be dynamic and will need to expose a range, like a bittorent peer for instance.

Changed in juju:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Big +1 the wishlist'ing.

Just came across the need for this when setting up an FTP server on EC2 that requires a port range for passive transfers.

For now....

for p in `seq $range_start $range_end` ; do
    open-port "$i"
done

Which works but takes forever with any large range and ends up flooding output of 'juju status' with a line for every port in the range.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Copying this bug over to juju-core, as it still doesn't support ranges.

Changed in juju-core:
status: New → Confirmed
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.