Comments (14)
you know what, I hate Vagrant, will do an encrypted proxmox vm instead
from debops-tools.
@devekko I don't use Vagrant either, instead I have a normal, separate subnet with dnsmasq
serving as DNS, DHCP and PXE boot service, and I'm using KVM host for virtual machines, which hold LXC containers. That way I get more permanent setup that is actually on a remote server in a data center, and I connect through it using tinc
VPN. All is on its own separate subdomain, mail works, I don't even use IP addresses, just hostnames.
As for ubuntu Studio not working... I dunno. I write DebOps for Debian first, so it should always work there. If you can tell me what specific issues with US you got, maybe we can find solutions.
from debops-tools.
was thinking of making a bastion debops controller server on Jessie and expect fewer issues
but, can I replicate or backup the debops controller server if its not my laptop?
the main issue on Ubuntu Studio was Python 3.4 .. ConfigParser from memory
it was a late night special I am afraid, will try again from another clean install of Ubuntu Studio
I guess I should get it running from my main laptop
but, am wondering how I should replicate/backup, especially secrets
from debops-tools.
niccolox@trustyinx:|⇒ debops-update|⇒ sudo pip install https://github.com/debops/debops/archive/master.zip
Traceback (most recent call last):
File "/usr/local/bin/debops-update", line 63, in
from debops import *
File "/usr/local/lib/python3.4/dist-packages/debops/init.py", line 42, in
from .config import *
File "/usr/local/lib/python3.4/dist-packages/debops/config.py", line 108
except ConfigParser.Error, e:
^
SyntaxError: invalid syntax
niccolox@trustyinx:
[sudo] password for niccolox:
Sorry, try again.
[sudo] password for niccolox:
The directory '/home/niccolox/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/niccolox/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting https://github.com/debops/debops/archive/master.zip
Downloading https://github.com/debops/debops/archive/master.zip
\ 73kB 409kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 20, in
File "/tmp/pip-6_0pps19-build/setup.py", line 52, in
zip_safe = True,
File "/usr/lib/python3.4/distutils/core.py", line 121, in setup
dist.parse_config_files()
File "/usr/lib/python3.4/distutils/dist.py", line 394, in parse_config_files
parser.read(filename)
File "/usr/lib/python3.4/configparser.py", line 672, in read
self._read(fp, filename)
File "/usr/lib/python3.4/configparser.py", line 1070, in _read
fpname, lineno)
configparser.DuplicateOptionError: While reading from 'setup.cfg' [line 12]: option 'release' in section 'aliases' already exists
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-6_0pps19-build
from debops-tools.
niccolox@trustyinx:~|⇒ sudo -H pip install https://github.com/debops/debops/archive/master.zip
Collecting https://github.com/debops/debops/archive/master.zip
Downloading https://github.com/debops/debops/archive/master.zip (72kB)
100% |████████████████████████████████| 73kB 230kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 20, in
File "/tmp/pip-sfm3dcta-build/setup.py", line 52, in
zip_safe = True,
File "/usr/lib/python3.4/distutils/core.py", line 121, in setup
dist.parse_config_files()
File "/usr/lib/python3.4/distutils/dist.py", line 394, in parse_config_files
parser.read(filename)
File "/usr/lib/python3.4/configparser.py", line 672, in read
self._read(fp, filename)
File "/usr/lib/python3.4/configparser.py", line 1070, in _read
fpname, lineno)
configparser.DuplicateOptionError: While reading from 'setup.cfg' [line 12]: option 'release' in section 'aliases' already exists
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-sfm3dcta-build
from debops-tools.
I did do a bit of hacking trying to get the ConfigParser references to lower case
but, its not sustainable ...
niccolox@trustyinx:|⇒ sudo -H pip install --upgrade virtualenv|⇒ sudo -H pip install --upgrade pip
Requirement already up-to-date: virtualenv in /usr/local/lib/python3.4/dist-packages
niccolox@trustyinx:
Requirement already up-to-date: pip in /usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg
niccolox@trustyinx:|⇒ sudo -H pip install debops|⇒ sudo -H pip install --upgrade debops
Requirement already satisfied (use --upgrade to upgrade): debops in /usr/local/lib/python3.4/dist-packages
Requirement already satisfied (use --upgrade to upgrade): netaddr in /usr/local/lib/python3.4/dist-packages (from debops)
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/local/lib/python3.4/dist-packages (from debops)
niccolox@trustyinx:
Requirement already up-to-date: debops in /usr/local/lib/python3.4/dist-packages
Requirement already up-to-date: netaddr in /usr/local/lib/python3.4/dist-packages (from debops)
Requirement already up-to-date: argparse in /usr/local/lib/python3.4/dist-packages (from debops)
niccolox@trustyinx:~|⇒ debops-init ~/debops-devekko
Traceback (most recent call last):
File "/usr/local/bin/debops-init", line 38, in
from debops import *
File "/usr/local/lib/python3.4/dist-packages/debops/init.py", line 42, in
from .config import *
File "/usr/local/lib/python3.4/dist-packages/debops/config.py", line 108
except ConfigParser.Error, e:
^
SyntaxError: invalid syntax
from debops-tools.
https://github.com/debops/debops/blob/6daddec4f73e69fd39c44197b5c9952f1f2cf368/setup.py
so, Ubuntu has both 2.7 and 3.4 of Python running
but, debops uses 2.7
so, I guess I should be finding a way to switch / run the debops-init type commands under 2.7 on Trusty
niccolox@trustyinx:|⇒ python -V|⇒ python3 -V
Python 2.7.6
niccolox@trustyinx:
Python 3.4.0
presumably there is a way to do this in code also
from debops-tools.
judging from this http://stackoverflow.com/questions/11756777/how-to-change-the-default-version-of-python-in-a-linux-machine-not-just-symlin
its not smart to try to change defaults on python
so, am going to spin up a Vagrant Jessie VM on my laptop and see if I can make this work
the strange thing is I am sure I got this working on mainline Trusty, so, maybe there enough of a difference between Ubuntu Studio and Trusty mainline
from debops-tools.
just did an pip uninstall
then
niccolox@trustyinx:/Projects|⇒ git clone https://github.com/debops/debops/Projects|⇒ sudo pip install ./debops
Cloning into 'debops'...
remote: Counting objects: 1142, done.
remote: Total 1142 (delta 0), reused 0 (delta 0), pack-reused 1142
Receiving objects: 100% (1142/1142), 240.27 KiB | 0 bytes/s, done.
Resolving deltas: 100% (652/652), done.
Checking connectivity... done.
niccolox@trustyinx:
The directory '/home/niccolox/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/niccolox/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Processing ./debops
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 20, in
File "/tmp/pip-zyx4rezy-build/setup.py", line 52, in
zip_safe = True,
File "/usr/lib/python3.4/distutils/core.py", line 121, in setup
dist.parse_config_files()
File "/usr/lib/python3.4/distutils/dist.py", line 394, in parse_config_files
parser.read(filename)
File "/usr/lib/python3.4/configparser.py", line 672, in read
self._read(fp, filename)
File "/usr/lib/python3.4/configparser.py", line 1070, in _read
fpname, lineno)
configparser.DuplicateOptionError: While reading from 'setup.cfg' [line 12]: option 'release' in section 'aliases' already exists
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-zyx4rezy-build
from debops-tools.
got passed install from git repo by commenting out redudant line
release = egg_info sdist register
release = egg_info sdist register upload upload_docs
then, init fails again
niccolox@trustyinx:~/Projects|⇒ debops-init ~/debops-devekko
Traceback (most recent call last):
File "/usr/local/bin/debops-init", line 38, in
from debops import *
File "/usr/local/lib/python3.4/dist-packages/debops/init.py", line 32, in
import ConfigParser
ImportError: No module named 'ConfigParser'
from debops-tools.
tried this,
sudo apt-get install python3-dev
failed
maybe you can use the Six module, for Python 2 & 3 compatability
http://pythonhosted.org/six/
from debops-tools.
somehow Ansible is broken
I think I might have stumbled into this bug, probably by trying various installation methods, possibly without correct permissions
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1308714
which is similar to
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/ansible-project/O3CFSXB_UhM/FzrMPX2oLQAJ
havent reinstalled on a fresh Ubuntu Studio, but did get it working no problem on Trusty
from debops-tools.
@devekko You could try building a .deb
Ansible package from GitHub source using LANG=C make deb
command, then installing the resulting .deb
via dpkg -i
.
DebOps should now work correctly with Ansible v2 (devel), so you can try using this version, although in production I would still use current stable release.
from debops-tools.
am closing this, for this new more general one debops/debops#127
from debops-tools.
Related Issues (20)
- Check code signatures
- Move `debops.keyring` Python module into this repo
- Refactor Python modules
- Signed PyPI releases
- debops-update: fails when ansible_managed contains variables
- Document subcommands
- Please enlighten me how to workaround this particular failure I noted HOT 12
- MS Windows Support? HOT 5
- Update http://debops.org/ to https://debops.org/ in repo description HOT 1
- README randomly lists 1 out of 3 dependencies
- provide a commented example config of how to use template_src HOT 1
- debops-padlock unusable with encfs > 1.9 HOT 6
- Raspbian detected as Debian HOT 4
- debops-update has no --dry-run argument HOT 2
- Debops inserts faulty Ansible ppa sources into sources.list HOT 1
- ERROR! Unexpected Exception: invalid syntax (profile_tasks.py, line 68)
- Broken Link for "Getting Started Guide" HOT 3
- wrong pathes for lookup_plugins in ansible.cfg HOT 5
- quoting directories with spaces in ansible.cfg breaks with 2.7 HOT 6
- Bootstrap: Variables from group_vars/all/bootstrap.yml not getting picked up HOT 2
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 debops-tools.