Comments (2)
@jdsn @bmwiedemann any feedback on this?
from automation.
docs/mkcloud.md has a number of one-time setup tasks that really make sense to incorporate into the setuphost target. This includes:
installing and enabling libvirt if necessary
already implemented:
https://github.com/SUSE-Cloud/automation/blob/master/scripts/lib/mkcloud-driver-libvirt.sh#L116
installing and enabling virtlogd if necessary
https://github.com/SUSE-Cloud/automation/blob/master/scripts/lib/mkcloud-driver-libvirt.sh#L144
Both services are only started - not insserv'ed, so this could be added easily.
creating a suitable local disk file and performing losetup, if necessary
That is only a workaround for the rare cases.
The usual choice should either be to use a dedicated disk (then set cloudpv=/dev/<diskname>
) or to use an existing LVM (then set cloudvg=<yourLVMname>
)
The size of the sparse file depends on what you want to deploy and where you put it and how much space you want to reserve for it. Thats impossible to know. So rather create the sparse file manually, because you know your requirements.
Please note: setuphost
is preparing a host for mkcloud deployments in general - not for a specific deployment or cloud configuration. So there is no configuration to derive anything from.
setuphost should be idempotent, of course, so that it can be re-run without harm.
Where is it not idempotent?
As a further exercise, it would be nice if setuphost were included in the default list of those targets that expand to lots of steps. e.g. all, plain, etc.
We extracted it intentionally from these expanding steps. Because it is only needed to run once per host. Rerunning it would be a waste of time.
Furthermore it would be impossible for intended use case that mkcloud is run as normal user. The single setuphost run has to be run once as root however. But all mkcloud deployments can be run as normal user.
So the intrusive changes need to be run as root. All actions that are run via sudo for a normal deployment must be non-intrusive (must not destroy anything).
So, my take away is, to add the "insserv"
from automation.
Related Issues (20)
- Explore alternative options for mkcloud deployment HOT 23
- Need faster image download mechanism
- mkcloud needs to automatically log itself to a file HOT 3
- native support for screen (and tmux?) HOT 3
- add step to update the product codebase without reinstalling the cloud
- Apache keystone.conf has extra noise at the bottom
- Horizon project list doesn
- Changes to crowbar chef templates may get overwritten by updates HOT 1
- Running the cloud-crowbar-testbuild-pr Jenkins job fails with encoding problems HOT 4
- Failure to retrieve Manila image HOT 1
- Sample script in docs/mkcloud.md fails
- Created virtual network may conflict with existing networks HOT 2
- "soc-ci worker-pool-reserve" doesn't work with hosts running mkcloud non-root
- jenkins/jenkins-job-trigger HTTP failure should not be silent HOT 2
- in the cloud-update-ci job JJB fails to update ci.opensuse.org HOT 6
- hung mkcloud does not collect supportconfigs HOT 6
- allocpool is undocumented and written in Perl HOT 1
- motd should show origin of cloud HOT 5
- `mkcloud plain` fails to download manila-service-image
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 automation.