Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inv build results in errors #49

Closed
scetron opened this issue Sep 22, 2022 · 0 comments
Closed

inv build results in errors #49

scetron opened this issue Sep 22, 2022 · 0 comments

Comments

@scetron
Copy link
Contributor

scetron commented Sep 22, 2022

Environment

  • Python version: 3.7
  • Nautobot version: 1.2.1 (default by inventory/poetry)
  • secrets version: 1.3.0
  • poetry version: 1.2.1

Expected Behavior

Containers should build successfully and I can launch the dev environment with inv debug/start.

Observed Behavior

The build fails. After working through these dependency issues, docker-compose cannot pull the Vault image.

Steps to Reproduce

  1. Pull down latest repo, make sure the develop branch is active
  2. execute poetry shell then poetry install
  3. execute inv build

View build error, which appears to be downstream dependency conflict issue:

Updating dependencies
#10 147.5 Resolving dependencies...
#10 298.4 
#10 298.4   SolverProblemError
#10 298.4 
#10 298.4       Because no versions of black match <22.1.0 || >22.1.0,<22.3.0 || >22.3.0,<22.6.0 || >22.6.0,<22.8.0 || >22.8.0
#10 298.4    and black (22.1.0) depends on click (>=8.0.0), black (<22.3.0 || >22.3.0,<22.6.0 || >22.6.0,<22.8.0 || >22.8.0) requires click (>=8.0.0).
#10 298.4       And because black (22.3.0) depends on click (>=8.0.0), black (<22.6.0 || >22.6.0,<22.8.0 || >22.8.0) requires click (>=8.0.0).
#10 298.4   (1) So, because black (22.6.0) depends on click (>=8.0.0)
#10 298.4    and black (22.8.0) depends on click (>=8.0.0), every version of black requires click (>=8.0.0).
#10 298.4   
#10 298.4       Because no versions of celery match >5.1.0,<5.1.1 || >5.1.1,<5.1.2 || >5.1.2,<5.2.0
#10 298.4    and celery (5.1.0) depends on click (>=7.0,<8.0), celery (>=5.1.0,<5.1.1 || >5.1.1,<5.1.2 || >5.1.2,<5.2.0) requires click (>=7.0,<8.0).
#10 298.4       And because celery (5.1.1) depends on click (>=7.0,<8.0)
#10 298.4    and celery (5.1.2) depends on click (>=7.0,<8.0), celery (>=5.1.0,<5.2.0) requires click (>=7.0,<8.0).
#10 298.4       And because every version of black requires click (>=8.0.0) (1), black is incompatible with celery (>=5.1.0,<5.2.0)
#10 298.4       And because nautobot (1.2.1) depends on celery (>=5.1.0,<5.2.0), black is incompatible with nautobot (1.2.1).
#10 298.4       So, because nautobot-secrets-providers depends on both nautobot (1.2.1) and black (*), version solving failed.
#10 298.4 
#10 298.4   at ~/.local/share/pypoetry/venv/lib/python3.7/site-packages/poetry/puzzle/solver.py:241 in _solve
#10 298.4       237│             packages = result.packages
#10 298.4       238│         except OverrideNeeded as e:
#10 298.4       239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
#10 298.4       240│         except SolveFailure as e:
#10 298.4     → 241│             raise SolverProblemError(e)
#10 298.4       242│ 
#10 298.4       243│         results = dict(
#10 298.4       244│             depth_first_search(
#10 298.4       245│                 PackageNode(self._package, packages), aggregate_package_nodes
#10 ERROR: executor failed running [/bin/sh -c poetry self update &&     poetry add nautobot=$NAUTOBOT_VER &&     poetry update --lock &&     poetry install --no-interaction --no-ansi --no-root]: exit code: 1
------
 > [ 6/10] RUN poetry self update &&     poetry add nautobot=1.2.1 &&     poetry update --lock &&     poetry install --no-interaction --no-ansi --no-root:
#10 298.4   at ~/.local/share/pypoetry/venv/lib/python3.7/site-packages/poetry/puzzle/solver.py:241 in _solve
#10 298.4       237│             packages = result.packages
#10 298.4       238│         except OverrideNeeded as e:
#10 298.4       239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
#10 298.4       240│         except SolveFailure as e:
#10 298.4     → 241│             raise SolverProblemError(e)
#10 298.4       242│ 
#10 298.4       243│         results = dict(
#10 298.4       244│             depth_first_search(
#10 298.4       245│                 failed to solve: executor failed running [/bin/sh -c poetry self update &&     poetry add nautobot=$NAUTOBOT_VER &&     poetry update --lock &&     poetry install --no-interaction --no-ansi --no-root]: exit code: 1
PackageNode(self._package, packages), aggregate_package_nodes

After moving Nautobot to 1.2.11, we run into issues pulling the vault image

inv debug
Starting Nautobot in debug mode...
Running docker-compose command "up"
vault Pulling 
vault Error 
Error response from daemon: Head "https://registry-1.docker.io/v2/library/vault/manifests/latest": unauthorized: incorrect username or password
@DistantVoyager DistantVoyager closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants