WIP: trigger nixops from panel #246
No reviewers
Labels
No labels
blocked
bug
component: fediversity panel
component: nixops4
contributor experience
documentation
estimation high: >3d
estimation low: <2h
estimation mid: <8h
goal: devops
project-management
question
role: sysadmin
security
technical debt
testing
user experience
user story
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Fediversity/Fediversity#246
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "kiara/Fediversity:stitching"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #76.
As a workaround to pass info (from our user form) into nixops4 uses environment variable
DEPLOYMENT
thru nix's--extra-experimental-features configurable-impure-env
.Things to be tested:
cd panel; nix-shell; manage runserver
-> trigger deploy button in form at 127.0.0.1:8000)nix develop; nixops4 apply
-> trigger deploy button in form at https://demo.fediversity.eu/)self
thru in flake 1995850663481dcf3223
to40060f19b6
error: attribute 'age' missing
561d50cf50561d50cf50
tof50ee049f2
the reason why there is a 502 seems to be the following
The nginx log seems to get a connection refused from the panel
which make sense since de the panel service is failed
and the cause of that seems to be the following
and the .CREDENTIALS indeed doesnt exist
f50ee049f2
to3e2c83435d
ModuleNotFoundError
on missingdjango_pydantic_field
b409fd7719self
thru in flake ae08673c1berror: attribute 'age' missing
f50ee049f2@ -44,0 +54,4 @@
return obj
def run_deployment(self, obj):
if "deploy" in self.request.POST.keys():
@kevin is there a reason we perform this check twice now?
@ -42,2 +49,4 @@
)
if "deploy" in self.request.POST.keys():
threading.Thread(target=self.run_deployment, args=(obj,)).start()
@kevin do we have a way to return info back to the client this way? or would the client know what it needs to know for now?
given this pr got convoluted with commits for #74, i'll close this to split things up.
a distilled pr covering a local PR button is now up in reviewable state at #253.
Pull request closed