Comments (15)
If you want to exclude something from a set of things, you need to specify the set of things first of which you want to exclude something. That is common sense.
So by explaining the syntax how you can exclude one thing (-200), does not mean you can use that syntax by it's own.
"-200" means you want to exclude 200 from nothing, which will be less than nothing, and it doesn't makes any sense.
"all-200" means you want to exclude 200 from all the things.
from cv4pve-autosnap.
Hi,
can you write the command line you use? Best regards
Best regards
from cv4pve-autosnap.
cv4pve-autosnap --host="127.0.0.1" --api-token='snapshot@pam!snapshot=f026fff0-37a2-43fe-b717-373d60ecfea8' --vmid="-105" snap --only-running --label="once" --keep=1
whereas
cv4pve-autosnap --host="127.0.0.1" --api-token='snapshot@pam!snapshot=f026fff0-37a2-43fe-b717-373d60ecfea8' --vmid="all,-105" snap --only-running --label="once" --keep=1
works fine.
from cv4pve-autosnap.
I'm checking the problem
Best regards
from cv4pve-autosnap.
Hi,
for parameters '--only-running' or '--script' if you execute
cv4pve-autosnap snap --help
show help sub command.
from cv4pve-autosnap.
----- VMs with '-105' NOT FOUND -----
----- POSSIBLE PROBLEM PERMISSION 'VM.Audit' -----
----- POSSIBLE PROBLEM PERMISSION 'Datastore.Audit' -----
The result of that setting is no vm found, so it could be a permissions issue.
Btest regards
from cv4pve-autosnap.
No, it is just a follow-up error because of the --vmid="-105" which in itself does not find a VM. I also thought it was a permission issue but if you correctly specify --vmid "all,-105", the problem goes away. So, if no VM is found, there should be no misleading additional errors.
from cv4pve-autosnap.
About the "show help sub": I talked about the Readme.md and the examples. I only found these parameters because someone else had referenced them.
from cv4pve-autosnap.
If no VM is found, it may be a user permissions error.
from cv4pve-autosnap.
About the "show help sub": I talked about the Readme.md and the examples. I only found these parameters because someone else had referenced them.
ok, so I have to explain all the parameters and print all the help?
from cv4pve-autosnap.
If no VM is found, it may be a user permissions error.
For the 3rd time: No, it is NOT a user permissions error. Only the error message is strongly misleading. The root cause is that I used --vmid="-105", which is inherently suggested by the help text, but does not function in itself. In order to exclude just one VM, you have to first say "all", THEN exclude a specific VM, like "all,-105". "-105" will never find any VM at all, resulting in that erroneous error message. If at all there should be a message pointing to the "possible" cause of no VM found, it should be that excluding a VM in itself can never find any VM, even if others do in fact exist.
You asked for an example, I gave it. Just try for yourself: Use --vmid="-105" (regardless if you have a VM with that number). If you expect to snapshot all the other VMs, you are mistaken and will get exactly these error messages about permissions.
from cv4pve-autosnap.
About "having to explain all the parameters" (and in a clear way): documentation is IMHO a means to convey the features of a piece of software to spare others the act of doing software archeology. I have lost hours of poking around with just the issues I mentioned.
It is like writing a book: You put much more effort into writing a book than to read it. Why? Because you are only one person and probably (hopefully) many people will read it. Therefore, time spent to make it easier on them one time is beneficial in the grand perspective.
So, if you want your software to be put to good use, take the time and make it easier for others to use it.
from cv4pve-autosnap.
About "having to explain all the parameters" (and in a clear way): documentation is IMHO a means to convey the features of a piece of software to spare others the act of doing software archeology. I have lost hours of poking around with just the issues I mentioned.
It is like writing a book: You put much more effort into writing a book than to read it. Why? Because you are only one person and probably (hopefully) many people will read it. Therefore, time spent to make it easier on them one time is beneficial in the grand perspective.
So, if you want your software to be put to good use, take the time and make it easier for others to use it.
What do you propose?
from cv4pve-autosnap.
If no VM is found, it may be a user permissions error.
For the 3rd time: No, it is NOT a user permissions error. Only the error message is strongly misleading. The root cause is that I used --vmid="-105", which is inherently suggested by the help text, but does not function in itself. In order to exclude just one VM, you have to first say "all", THEN exclude a specific VM, like "all,-105". "-105" will never find any VM at all, resulting in that erroneous error message. If at all there should be a message pointing to the "possible" cause of no VM found, it should be that excluding a VM in itself can never find any VM, even if others do in fact exist.
You asked for an example, I gave it. Just try for yourself: Use --vmid="-105" (regardless if you have a VM with that number). If you expect to snapshot all the other VMs, you are mistaken and will get exactly these error messages about permissions.
the result is no vm, it could be due to the exclusion of all, or because you don't have permissions. I don't know which of the two brings no result. The fact is that specifying an exclude '-105' without specifying what to include is an operator error, and generates no result in the program.
I hope I have explained myself.
Best regards
from cv4pve-autosnap.
My proposal would be:
-
Clarify how excluding works. Now it reads: "-vmid or -name exclude (e.g. -200,-TestUbuntu)", so you exactly give a non-working example in the parentheses, thus forcing this "operator error" by using a bad example. Better would be to explain it like: "-vmid or -name exclude from list, e.g.: 'all,-200,-301' or "all,-TestUbuntu", but not '-200' alone"
-
If you have "potential" error messages, add "POSSIBLE PROBLEM VMID specification should be 'all,-vmid' instead of '-vmid'. You could even find that specific operator problem because a valid VMID specification must never start with '-'.
-
Include the missing parameters in the Readme.md, you do not have to explain them in detail, just mention their existence.
from cv4pve-autosnap.
Related Issues (20)
- Save snap to another storage HOT 2
- Same error trying to snap on proxmox 6.2 HOT 9
- Proxmox 7.2-11 issues HOT 3
- [FEATURE] Add an option to snapshot only running VMs/CTs HOT 4
- Can this be made possible to run locally on the proxmox server shell? HOT 3
- Feature: Snap from tags HOT 7
- Is it safety to use cv4pve-autosnap in conjunction with Storage Replication (pvecm)? HOT 7
- Obsolete defaults-extra-file HOT 1
- Object reference not set to an instance of an object. HOT 2
- Cannot exclude vm disks HOT 3
- Include an example of how to use a snapshot to restore a VM/CT ? HOT 1
- Can't snapshot a VM without disk HOT 4
- No usable version of libssl was found HOT 6
- API tokens syntax is an unlucky choice HOT 13
- Feature: Option to disable Memory on snapshot HOT 1
- Incomplete error handling (or lack of filtering) for "non-snapshottable" machines HOT 1
- Destination storage HOT 2
- is promox 8 supported? HOT 1
- Capture snapshot with RAM HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cv4pve-autosnap.