(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl -a abc123 10.252.17.122added acl abc123 to 10.252.17.122
(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl abc12310.252.17.122 abc123
(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl -i abc123 10.252.17.122ACL abc123 injected into integrated load queue for 10"10.252.17.122" injected into manual load queue(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl -m10.252.17.122added by tpurcell on 2012-08-08 16:19:58
(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl -s
Access-lists currently staged in /home/tftp (listed by date):
Traceback (most recent call last):
File "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/acl", line 90, in <module>
os.chdir('/home/tftp')
OSError: [Errno 2] No such file or directory: '/home/tftp'
- How does an ACL get staged and what does that mean?
- Is there a way to control the location of the directory(/home/tftp) it looking for?
HiI'm trying to understand the trigger workflow. I have a router defined in netdevices.xml and I'm able to connect to that device over ssh via trigger. Now what I need to do is update the ACLs on the device.
- I can see how the command line tool associates a named ACL with a device but how do I create the named ACL?
(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl -a abc123 10.252.17.122added acl abc123 to 10.252.17.122(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl abc12310.252.17.122 abc123
- Now that the association exists how does it find its way on to the router? Should I inject it into the load queue?
(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl -i abc123 10.252.17.122ACL abc123 injected into integrated load queue for 10"10.252.17.122" injected into manual load queue(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl -m10.252.17.122added by tpurcell on 2012-08-08 16:19:58
- Now that its injected what happens next?
- If I try to list staged ACLs I get an error saying a file does not exist:
(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ acl -s
Access-lists currently staged in /home/tftp (listed by date):
Traceback (most recent call last):
File "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/acl", line 90, in <module>
os.chdir('/home/tftp')
OSError: [Errno 2] No such file or directory: '/home/tftp'
- How does an ACL get staged and what does that mean?
- Is there a way to control the location of the directory(/home/tftp) it looking for?
- Am I on the right path?
ThanksTom
acl -a openstack-green-acl 10.252.17.122
(vtrigger)tpurcell@tpurcell-Latitude-E6500 ~/data/comcast-code/mytrigger $ load_acl -Q
Traceback (most recent call last):
File "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/load_acl", line 668, in <module>def email_users(addresses, subject, body, fromaddr=settings.EMAIL_SENDER):AttributeError: 'Settings' object has no attribute 'EMAIL_SENDER'
2012-08-09 11:43:34-0400 [-] Log opened.2012-08-09 11:43:34-0400 [-] User tpurcell (uid:1000) executed "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/load_acl -Q --bouncy"2012-08-09 11:43:34-0400 [-] Bouncy enabled, disabling multiple jobs.2012-08-09 11:43:34-0400 [-] Loading openstack-green-acl OUT OF BOUNCE on 10.252.17.1222012-08-09 11:43:38-0400 [-] 'Unable to get oncall information!'
...
Are you sure you want to proceed? yLogging to /tmp/tmpQMJzEj_load_aclSubmitting CM ticket...
Traceback (most recent call last):
File "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/load_acl", line 822, in <module>main()File "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/load_acl", line 762, in maincm_ticketnum = create_cm_ticket(work, oncall)TypeError: _create_cm_ticket_stub() takes exactly 0 arguments (2 given)
...File "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/local/lib/python2.7/site-packages/trigger/conf/__init__.py", line 62, in import_pathmymodule = __import__(module)File "/home/tpurcell/data/comcast-code/mytrigger/trigger_settings.py", line 357CREATE_CM_TICKET = lambda a=None o, s: None
def _create_cm_ticket_stub(x,y):return 123456
...
File "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/load_acl", line 549, in select_next_deviceif group(dev) not in active_groups:File "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/load_acl", line 531, in groupx = trimmer.match(dev.nodeName).group()AttributeError: 'NoneType' object has no attribute 'group'
2012-08-09 13:49:43-0400 [-] Log opened.
2012-08-09 13:49:43-0400 [-] User tpurcell (uid:1000) executed "/home/tpurcell/data/comcast-code/mytrigger/vtrigger/bin/load_acl -Q --bouncy"
2012-08-09 13:49:43-0400 [-] Bouncy enabled, disabling multiple jobs.
2012-08-09 13:49:43-0400 [-] Loading openstack-green-acl OUT OF BOUNCE on 10.252.17.122
2012-08-09 13:49:45-0400 [-] Created CM ticket #123456
2012-08-09 13:55:06-0400 [-] Received SIGINT, shutting down.
2012-08-09 13:55:06-0400 [-] Main loop terminated.
2012-08-09 13:55:06-0400 [-] 0 failures
2012-08-09 13:55:06-0400 [-] Elapsed time: 5:20