In [33]: args = {
...: 'webGateway': 'wg',
...: 'domain': 'test.codescalers.com',
...: 'servers': ['http://10.102.223.147:5067']
...: }
In [34]: service = robot.services.create('github.com/threefoldtech/0-templates/reverse_proxy/0.0.1', 'test_codescalers_com_1', data=args)
In [36]: service.schedule_action('install').wait(die=True)
Out[36]: install
In [37]: args = {
...: 'webGateway': 'wg',
...: 'domain': 'test2.codescalers.com',
...: 'servers': ['http://10.102.223.147:5067']
...: }
In [38]: service = robot.services.create('github.com/threefoldtech/0-templates/reverse_proxy/0.0.1', 'test_codescalers_com_2', data=args)
In [39]: service.schedule_action('install').wait(die=True)
Out[39]: install
In [40]: args = {
...: 'webGateway': 'wg',
...: 'domain': 'test3.codescalers.com',
...: 'servers': ['http://10.102.223.147:5067']
...: }
In [41]:
In [41]: service = robot.services.create('github.com/threefoldtech/0-templates/reverse_proxy/0.0.1', 'test_codescalers_com_3', data=args)
In [42]: service.schedule_action('install').wait(die=True)
Out[42]: install
In [43]: args = {
...: 'webGateway': 'wg',
...: 'domain': 'test0.codescalers.com',
...: 'servers': ['http://10.102.223.147:5067']
...: }
In [44]: service = robot.services.create('github.com/threefoldtech/0-templates/reverse_proxy/0.0.1', 'test_codescalers_com', data=args)
In [45]: service.schedule_action('install').wait(die=True)
Out[45]: install
Traefik data :-
tried to uninstall the second service test_codescalers_com_1
In [46]: ww = robot.services.names.get('test_codescalers_com_1')
In [47]: ww.schedule_action('uninstall').wait(die=True)
Out[47]: uninstall
- it was removed normally
![image](https://user-images.githubusercontent.com/13523434/60667895-ea87c880-9e6a-11e9-96d7-5a70608f772f.png)
- the issue here when i do uninstall test_codescalers_com it uninstall the rest of them
In [48]: ww = robot.services.names.get('test_codescalers_com')
In [49]: ww.schedule_action('uninstall').wait(die=True)
Out[49]: uninstall
test_codescalers_com test_codescalers_com_1 test_codescalers_com_2 test_codescalers_com_3
Traefik data :-
In [46]: ww = robot.services.names.get('test_codescalers_com_1')
In [47]: ww.schedule_action('uninstall').wait(die=True) Out[47]: uninstall
In [48]: ww = robot.services.names.get('test_codescalers_com')
In [49]: ww.schedule_action('uninstall').wait(die=True) Out[49]: uninstall