ben-grande / qusal

Salt Formulas for Qubes OS.
14 stars 6 forks source link

Qubes-builder fails on git functions after key verification #70

Closed kennethrrosen closed 1 week ago

kennethrrosen commented 1 week ago

Commitment

I confirm that I have read the following resources:

Software version

R4.2.1

Brief summary

Qubes-builder fails on git functions after key verification

Steps to reproduce

Run:

sudo qubesctl top.enable qubes-builder
sudo qubesctl --targets=tpl-qubes-builder,dvm-qubes-builder,qubes-builder state.apply

Expected behavior

qubes-builder pre-install finishes without error and user can move onto .prefs and post-install.

Actual behavior

qubes-builder installation fails at sudo qubesctl --targets=tpl-qubes-builder,dvm-qubes-builder,qubes-builder state.apply

2024-06-23 13:32:06,173 output:           ID: qubes-builder-git-clone-builderv2
2024-06-23 13:32:06,173 output:     Function: git.cloned
2024-06-23 13:32:06,173 output:         Name: https://github.com/QubesOS/qubes-builderv2.git
2024-06-23 13:32:06,173 output:       Result: False
2024-06-23 13:32:06,173 output:      Comment: State 'git.cloned' was not found in SLS 'qubes-builder.configure'
2024-06-23 13:32:06,173 output:               Reason: 'git' __virtual__ returned False: git module could not be loaded
2024-06-23 13:32:06,173 output:      Changes:   
2024-06-23 13:32:06,173 output: ----------
2024-06-23 13:32:06,173 output:           ID: qubes-builder-git-clone-infrastructure-mirrors
2024-06-23 13:32:06,174 output:     Function: git.cloned
2024-06-23 13:32:06,174 output:         Name: https://github.com/QubesOS/qubes-infrastructure-mirrors.git
2024-06-23 13:32:06,174 output:       Result: False
2024-06-23 13:32:06,174 output:      Comment: State 'git.cloned' was not found in SLS 'qubes-builder.configure'
2024-06-23 13:32:06,174 output:               Reason: 'git' __virtual__ returned False: git module could not be loaded
2024-06-23 13:32:06,174 output:      Changes:   
2024-06-23 13:32:06,174 output: ----------
2024-06-23 13:32:06,174 output:           ID: qubes-builder-git-config-gpg.program-for-builder
2024-06-23 13:32:06,174 output:     Function: git.config_set
2024-06-23 13:32:06,174 output:         Name: gpg.program
2024-06-23 13:32:06,174 output:       Result: False
2024-06-23 13:32:06,174 output:      Comment: One or more requisite failed: qubes-builder.configure.qubes-builder-git-clone-infrastructure-mirrors
2024-06-23 13:32:06,174 output:      Started: 13:32:03.929082
2024-06-23 13:32:06,174 output:     Duration: 0.02 ms
2024-06-23 13:32:06,175 output:      Changes:   
2024-06-23 13:32:06,175 output: ----------
2024-06-23 13:32:06,175 output:           ID: qubes-builder-git-config-gpg.program-for-mirrors
2024-06-23 13:32:06,175 output:     Function: git.config_set
2024-06-23 13:32:06,175 output:         Name: gpg.program
2024-06-23 13:32:06,175 output:       Result: False
2024-06-23 13:32:06,175 output:      Comment: One or more requisite failed: qubes-builder.configure.qubes-builder-git-clone-builderv2
2024-06-23 13:32:06,175 output:      Started: 13:32:03.929733
2024-06-23 13:32:06,175 output:     Duration: 0.009 ms
2024-06-23 13:32:06,175 output:      Changes:   
2024-06-23 13:32:06,175 output: ----------
2024-06-23 13:32:06,175 output:           ID: qubes-builder-git-verify-HEAD-builderv2
2024-06-23 13:32:06,176 output:     Function: cmd.run
2024-06-23 13:32:06,176 output:         Name: GNUPGHOME="$HOME/.gnupg/qubes-builder" git -c gpg.program=gpg2 verify-tag "$(git describe --tags --abbrev=0)"
2024-06-23 13:32:06,176 output:       Result: False
2024-06-23 13:32:06,176 output:      Comment: One or more requisite failed: qubes-builder.configure.qubes-builder-git-clone-builderv2
2024-06-23 13:32:06,176 output:      Started: 13:32:03.930250
2024-06-23 13:32:06,176 output:     Duration: 0.009 ms
2024-06-23 13:32:06,176 output:      Changes:   
2024-06-23 13:32:06,176 output: ----------
2024-06-23 13:32:06,176 output:           ID: qubes-builder-git-verify-HEAD-infrastructure-mirrors
2024-06-23 13:32:06,176 output:     Function: cmd.run
2024-06-23 13:32:06,176 output:         Name: GNUPGHOME="$HOME/.gnupg/qubes-builder" git -c gpg.program=gpg2 verify-commit "HEAD^{commit}"
2024-06-23 13:32:06,176 output:       Result: False
2024-06-23 13:32:06,176 output:      Comment: One or more requisite failed: qubes-builder.configure.qubes-builder-git-clone-infrastructure-mirrors
2024-06-23 13:32:06,177 output:      Started: 13:32:03.930485
2024-06-23 13:32:06,177 output:     Duration: 0.005 ms
2024-06-23 13:32:06,177 output:      Changes:   
2024-06-23 13:32:06,177 output: ----------
2024-06-23 13:32:06,177 output:           ID: qubes-builder-build-infrastructure-mirrors
2024-06-23 13:32:06,177 output:     Function: cmd.run
2024-06-23 13:32:06,177 output:         Name: sudo python3 setup.py build
2024-06-23 13:32:06,177 output:       Result: False
2024-06-23 13:32:06,177 output:      Comment: One or more requisite failed: qubes-builder.configure.qubes-builder-git-verify-HEAD-infrastructure-mirrors
2024-06-23 13:32:06,177 output:      Started: 13:32:03.930918
2024-06-23 13:32:06,177 output:     Duration: 0.008 ms
2024-06-23 13:32:06,177 output:      Changes:   
2024-06-23 13:32:06,177 output: ----------
2024-06-23 13:32:06,177 output:           ID: qubes-builder-install-infrastructure-mirrors
2024-06-23 13:32:06,177 output:     Function: cmd.run
2024-06-23 13:32:06,178 output:         Name: sudo python3 setup.py install
2024-06-23 13:32:06,178 output:       Result: False
2024-06-23 13:32:06,178 output:      Comment: One or more requisite failed: qubes-builder.configure.qubes-builder-build-infrastructure-mirrors
2024-06-23 13:32:06,178 output:      Started: 13:32:03.931465
2024-06-23 13:32:06,178 output:     Duration: 0.008 ms
2024-06-23 13:32:06,178 output:      Changes:   
2024-06-23 13:32:06,178 output: 
2024-06-23 13:32:06,178 output: Summary for qubes-builder
2024-06-23 13:32:06,178 output: -------------
2024-06-23 13:32:06,178 output: Succeeded: 26 (changed=24)
2024-06-23 13:32:06,178 output: Failed:     8
2024-06-23 13:32:06,178 output: -------------

.

ben-grande commented 1 week ago

Qubes-builder fails on git functions after key verification

Just a tip, it did fail on git functions, but not after key verification, it was before. The git verification failed because the git function failed. What happened before was solely the import or public keys.

kennethrrosen commented 1 week ago

"On" meaning "at some point," as I was unclear; but I appreciate your clarification!

kennethrrosen commented 1 week ago

I see now; later in the title. Shot in the dark, I suppose! My error.