Skip to content

Commit fd6aab4

Browse files
authored
Merge pull request #337 from rackerlabs/fix-undersync-device-workflow
fix: undersync device workflow
2 parents 898fdba + 08e76ca commit fd6aab4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

components/argo/workflow-defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
spec:
22
podGC:
33
strategy: OnWorkflowSuccess # to allow garbage collection of secrets (created by pods) upon workflow completion
4+
deleteDelayDuration: 72h
45
ttlStrategy:
56
secondsAfterSuccess: 300
67
secondsAfterFailure: 259200 # 3 days

python/understack-workflows/understack_workflows/undersync/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ def client(self):
3333
return session
3434

3535
def sync(self, uuids: str) -> requests.Response:
36-
response = self.client.post(f"{self.api_url}/v1/devices/{uuids}/sync")
36+
response = self.client.post(f"{self.api_url}/v1/vlan-group/{uuids}/sync")
3737
response.raise_for_status()
3838
return response
3939

4040
def dry_run(self, uuids: str) -> requests.Response:
41-
response = self.client.post(f"{self.api_url}/v1/devices/{uuids}/dry-run")
41+
response = self.client.post(f"{self.api_url}/v1/vlan-group/{uuids}/dry-run")
4242
response.raise_for_status()
4343
return response
4444

4545
def force(self, uuids: str) -> requests.Response:
46-
response = self.client.post(f"{self.api_url}/v1/devices/{uuids}/force")
46+
response = self.client.post(f"{self.api_url}/v1/vlan-group/{uuids}/force")
4747
response.raise_for_status()
4848
return response

workflows/argo-events/workflowtemplates/undersync-device.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ spec:
4040
- name: interface_mac
4141
- name: device_uuid
4242
- name: network_name
43+
- name: network_id
4344
- name: force
4445
- name: dry_run
4546
volumes:

0 commit comments

Comments
 (0)