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

inmanta deploy command ignore -f option #6993

Closed
edvgui opened this issue Jan 16, 2024 · 0 comments
Closed

inmanta deploy command ignore -f option #6993

edvgui opened this issue Jan 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working tiny Tiny issues

Comments

@edvgui
Copy link
Contributor

edvgui commented Jan 16, 2024

When using the inmanta deploy command, I expect to be able to pass the "main" file of my choice, just like the command helper suggests and similarly to the compile command, but it seems that this option is ignored.

(tmp-a44f955e1f6f00e) guillaume@fedora:/tmp/project$ inmanta -vvv deploy
inmanta.warnings         WARNING ProjectConfigurationWarning: Setting a pip index through the `repo.url` option with type `package` in the project.yml file is no longer supported and will be ignored. Please set the pip index url through the `pip.index_url` option instead.
inmanta.deploy           DEBUG   Storing state data in ./data/deploy
inmanta.deploy           DEBUG   Starting postgresql on port 41545
inmanta.deploy           DEBUG   Started server on port 37837
asyncio                  DEBUG   Using selector: EpollSelector
inmanta.deploy           INFO    Export of model complete
inmanta.deploy           INFO    Latest version for created environment is 4
std::AgentConfig[internal,agentname=localhost],v=4 - deployed
std::File[localhost,path=/tmp/test.txt],v=4 - deployed
[2 / 2]
Deploy ready
(tmp-a44f955e1f6f00e) guillaume@fedora:/tmp/project$ mv main.cf test.cf
(tmp-a44f955e1f6f00e) guillaume@fedora:/tmp/project$ inmanta -vvv deploy -f test.cf 
inmanta.warnings         WARNING ProjectConfigurationWarning: Setting a pip index through the `repo.url` option with type `package` in the project.yml file is no longer supported and will be ignored. Please set the pip index url through the `pip.index_url` option instead.
inmanta.deploy           DEBUG   Storing state data in ./data/deploy
inmanta.deploy           DEBUG   Starting postgresql on port 37261
inmanta.deploy           DEBUG   Started server on port 50497
asyncio                  DEBUG   Using selector: EpollSelector
An error occurred while compiling the model:
compiler       WARNING ProjectConfigurationWarning: Setting a pip index through the `repo.url` option with type `package` in the project.yml file is no longer supported and will be ignored. Please set the pip index url through the `pip.index_url` option instead.
compiler       DEBUG   Starting compile
compiler       WARNING Compile cache loading failure, ignoring cache entry for ./main.cf
                       Traceback (most recent call last):
                         File "/home/guillaume/.virtualenvs/tmp-a44f955e1f6f00e/lib/python3.11/site-packages/inmanta/parser/cache.py", line 98, in un_cache
                           mtime = os.path.getmtime(filename)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
                         File "<frozen genericpath>", line 55, in getmtime
                       FileNotFoundError: [Errno 2] No such file or directory: './main.cf'
exporter       DEBUG   Start transport for client compiler
asyncio        DEBUG   Using selector: EpollSelector
exporter       DEBUG   Getting config in section compiler_rest_transport
exporter       DEBUG   Calling server POST http://localhost:50497/api/v2/reserve_version
exporter       WARNING Compilation of model failed.
exporter       DEBUG   Generating resources from the compiled model took 0.007 seconds
exporter       WARNING Empty deployment model.
exporter       DEBUG   Committing resources took 0.000 seconds
exporter       DEBUG   The entire export command took 0.009 seconds


============================= COMPILATION FAILURE =============================
Error: [Errno 2] No such file or directory: './main.cf'

inmanta.deploy           INFO    Latest version for created environment is 4
std::AgentConfig[internal,agentname=localhost],v=4 - deployed
std::File[localhost,path=/tmp/test.txt],v=4 - deployed
[2 / 2]
Deploy ready
@edvgui edvgui added the bug Something isn't working label Jan 16, 2024
@sanderr sanderr added the tiny Tiny issues label Feb 16, 2024
@Hugo-Inmanta Hugo-Inmanta self-assigned this Feb 22, 2024
inmantaci pushed a commit that referenced this issue Feb 27, 2024
# Description

closes #6993

# Self Check:

Strike through any lines that are not applicable (`~~line~~`) then check the box

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [x] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
~~- [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )~~
~~- [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)~~
inmantaci pushed a commit that referenced this issue Feb 27, 2024
Pull request opened by the merge tool on behalf of #7254
Hugo-Inmanta added a commit that referenced this issue Feb 28, 2024
closes #6993

Strike through any lines that are not applicable (`~~line~~`) then check the box

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [x] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
~~- [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )~~
~~- [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)~~
inmantaci pushed a commit that referenced this issue Feb 28, 2024
# Description

iso6 part for #7254

# Self Check:

Strike through any lines that are not applicable (`~~line~~`) then check the box

- [ ] Attached issue to pull request
- [ ] Changelog entry
- [ ] Type annotations are present
- [ ] Code is clear and sufficiently documented
- [ ] No (preventable) type errors (check using make mypy or make mypy-diff)
- [ ] Sufficient test cases (reproduces the bug/tests the requested feature)
- [ ] Correct, in line with design
- [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
- [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)
Hugo-Inmanta added a commit that referenced this issue Feb 29, 2024
# Description

closes #6993

# Self Check:

Strike through any lines that are not applicable (`~~line~~`) then check the box

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [x] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
~~- [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )~~
~~- [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tiny Tiny issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants