Üdv!
Az archipel webes managementtel milyen tapasztalatotok van?
(KVM, Xen, OpenVZ, VMWare)
Nekem CentOS(7)-hez kellene (ill. Fedora-n tesztelném).
Van láttam Live (telepítő?) ISO-ja is.
Telepítését próbáltam már valaki (centos-on)?
--
G.
- 3668 megtekintés
Hozzászólások
Helló,
Én próbáltam talán egy jó éve, működött, nincs vele gond, amit a doksiba írnak mind úgy van.
- A hozzászóláshoz be kell jelentkezni
Elvileg ennyi a manuális telepítés?
* Az ejabberd telepítése (disztribből v. http://www.process-one.net/en/ejabberd/downloads/).
* "Nightlies Latest Releases" letöltése, telepítése. Agent és Client (Web UI).
--
G.
- A hozzászóláshoz be kell jelentkezni
Helló,
Jabber szerverem volt készen, így azt nem telepítettem külön, a webuihoz semmi extra nem kell, az simán tényleg csak egy webui.
Az Agent-et pedig Gentoo-ra raktam fel (azon futott a virtualizáció) forrásból, kb ahogy itt írják: https://github.com/ArchipelProject/Archipel/wiki/Installation:-Agent
- A hozzászóláshoz be kell jelentkezni
Otthon én is nézetni akartam,de az agent beállítása nem igazán sikerült :(
A leírás is elég gyér,hogy mi az ami kell neki feltétlen. Én mondjuk iso image-ből boot-oltam fel egy VM-et bridgelt hálón tesztnek VirtualBox alatt.
- A hozzászóláshoz be kell jelentkezni
Az ISO nekem is csak a boot képernyőn állt a VBox-ban.
--
G.
- A hozzászóláshoz be kell jelentkezni
Mivel akadtál el az agentbe?
- A hozzászóláshoz be kell jelentkezni
Én Fedora 20 x64 alatt próbáltam:
# sum install ejabberd
# easy_install archipel-agent && archipel-initinstall
Searching for archipel-agent
Best match: archipel-agent 0.6.0beta
Processing archipel_agent-0.6.0beta-py2.7.egg
archipel-agent 0.6.0beta is already the active version in easy-install.pth
Installing archipel-importvirtualmachine script to /usr/bin
Installing archipel-adminaccounts script to /usr/bin
Installing archipel-rolesnode script to /usr/bin
Installing runarchipel script to /usr/bin
Installing archipel-initinstall script to /usr/bin
Installing archipel-commandsbytag script to /usr/bin
Installing archipel-tagnode script to /usr/bin
Installing archipel-updatedomain script to /usr/bin
Installing archipel-command script to /usr/bin
Installing archipel-testxmppserver script to /usr/bin
Using /usr/lib/python2.7/site-packages/archipel_agent-0.6.0beta-py2.7.egg
Processing dependencies for archipel-agent
Finished processing dependencies for archipel-agent
MESSAGE: Installation initialization started
MESSAGE: Installing Service script to /usr/lib/systemd/system
cp: stat ”/usr/lib/systemd/system/archipel-agent.service” sikertelen: Nincs ilyen fájl vagy könyvtár
ERROR: Unable to copy the Service script. Please install it by yourself
MESSAGE: Installing configuration to /etc/archipel
WARNING: Configuration files already exist. Leaving as it is
MESSAGE: Installing data folder to /var/lib/archipel
WARNING: Lib folder already exists. Leaving as it is.
SUCCESS: Archipel installation complete
MESSAGE: IMPORTANT NOTE 1: you now need to edit /etc/archipel/archipel.conf top match your informations
MESSAGE: IMPORTANT NOTE 2: If you have used --name=auto and/or --xmpp-server=auto, please check values for xmpp_server and hypervisor_xmpp_jid
MESSAGE: IMPORTANT NOTE 3: if this is not already done, you need to run archipel-tagnode, archipel-rolesnode, archipel-adminaccount, archipel-vmparkingnode and archipel-vmrequestnode
# a UI 6beta webeserver root-ba másolva
De az agent-nek futnia kellene. Hogyan lehetne elindítani?
--
G.
- A hozzászóláshoz be kell jelentkezni
config fájlt (/etc/archipel/archipel.conf) megírtad?
A telepítő felrak egy init szkriptet, bár nem tudom, hogy a fedorat felismeri, de az /etc/init.d-be berakja, azzal lehet alapból indítani.
- A hozzászóláshoz be kell jelentkezni
Alapból ez /etc/archipel/archipel.conf:
[DEFAULT]
xmpp_server = localhost.localdomain
archipel_folder_lib = /var/lib/archipel/
archipel_general_uuid = 49aa2997-b0d2-45b6-944d-117c24da79b4
archipel_folder_data = /vm/
[GLOBAL]
xmpp_pubsub_server = pubsub.%(xmpp_server)s
archipel_root_admins = admin@%(xmpp_server)s
machine_ip = auto
use_avatar = True
machine_avatar_directory = %(archipel_folder_lib)s/avatars
libvirt_uri = qemu:///system
module_loading_policy = restrictive
stateless_node = False
[VCARD]
orgname = Archipel Corp
orgunit = Dev
userid = contact @ archipelproject.org
locality = San Francisco
url = http://archipelproject.org
categories = Archipel
[HYPERVISOR]
hypervisor_xmpp_jid = fedoranb@%(xmpp_server)s
hypervisor_xmpp_password = tcJIBrhC
hypervisor_name = auto
hypervisor_database_path = %(archipel_folder_lib)s/hypervisor.sqlite3
hypervisor_default_avatar = defaulthypervisor.png
name_generation_file = %(archipel_folder_lib)s/names.txt
hypervisor_permissions_database_path = %(archipel_folder_lib)s/permissions.sqlite3
[VIRTUALMACHINE]
vm_base_path = %(archipel_folder_data)s/drives
vm_default_avatar = defaultvm.png
xmpp_password_size = 32
maximum_lock_time = 1
vm_permissions_database_path = /permissions.sqlite3
allow_blank_space_in_vm_name = True
enable_block_device_access = True
disable_screenshot = False
[LOGGING]
logging_level = debug
log_pubsub_item_expire = 3600
log_pubsub_max_items = 1000
logging_file_path = /var/log/archipel/archipel.log
logging_max_bytes = 5000000
logging_backup_count = 5
logging_date_format = %Y-%m-%d %H:%M:%S
logging_formatter = %(levelname)s::%(asctime)s::%(filename)s:%(lineno)s::%(message)s
xmpppy_debug = False
[MODULES]
action_scheduler = True
geolocalization = True
hypervisor_health = True
hypervisor_network = True
hypervisor_vmcasts = True
iphone_notification = False
oomkiller = True
snapshoting = True
storage = True
virtualmachine_appliance = True
vnc = True
xmppserver = True
platformrequest = False
vmparking = True
[HEALTH]
health_database_path = %(archipel_folder_lib)s/statscollection.sqlite3
health_collection_interval = 5
max_rows_before_purge = 50000
max_cached_rows = 200
[STORAGE]
iso_base_path = %(archipel_folder_data)s/iso
use_metadata_preallocation = True
qemu_img_bin_path = /usr/bin/qemu-img
golden_drives_dir = %(archipel_folder_data)s/goldens
[GEOLOCALIZATION]
localization_mode = auto
localization_latitude = 0.0
localization_longitude = 0.0
localization_service_url = ipinfodb.com
localization_service_request = /ip_query.php
localization_service_method = GET
localization_service_response_root_node = Response
[VMCASTING]
vmcasting_database_path = %(archipel_folder_lib)s/vmcasting.sqlite3
repository_path = %(archipel_folder_data)s/repo
temp_path = %(archipel_folder_data)s/tmp
own_vmcast_name = Local VM casts of $HOSTNAME
own_vmcast_description = This is the own vmcast feed of the hypervisor $HOSTNAME
own_vmcast_uuid = %(archipel_general_uuid)s
own_vmcast_url = http://127.0.0.1:8088/vmcasts/
own_vmcast_file_name = rss.xml
own_vmcast_lang = en-us
own_vmcast_path = %(archipel_folder_data)s/vmcasts/
own_vmcast_refresh_interval = 60
disks_extensions = .qcow2;.qcow;.img;.iso
should_gzip_drives = True
ignore_user_gzip_choice = False
[IPHONENOTIFICATION]
credentials_key = YOUR CRED HERE
[OOMKILLER]
database = %(archipel_folder_lib)s/oom.sqlite3
[SCHEDULER]
database = %(archipel_folder_lib)s/scheduler.sqlite3
[XMPPSERVER]
use_xmlrpc_api = False
xmlrpc_host = %(xmpp_server)s
xmlrpc_port = 4560
xmlrpc_sslonly = False
xmlrpc_user = admin
xmlrpc_password = password
auto_group = False
auto_group_name_virtualmachines = All Virtual Machines
auto_group_name_hypervisors = All Hypervisors
auto_group_filter = all
[VNC]
vnc_certificate_file = /etc/archipel/vnc.pem
vnc_only_ssl = False
vnc_enable_websocket_debug = False
[NETWORKS]
libvirt_nw_filters_path = /etc/libvirt/nwfilter
[VMPARKING]
database = %(archipel_folder_data)s/shared_parking.sqlite3
Nekem init scriptet nem rakott fel.
--
G.
- A hozzászóláshoz be kell jelentkezni
runarchipel paranccsal kézzel is el lehet indítani, ahogy látom fedoran kézzel kell az init szkriptet felrakni, szükség esetén módosítani: http://maci0.wordpress.com/2013/05/27/setting-up-archipel-agent-on-fedo…
- A hozzászóláshoz be kell jelentkezni
Elvileg ok:
~# cp /usr/lib/python2.7/site-packages/archipel_agent-0.6.0beta-py2.7.egg/install/etc/init.d/archipel /etc/rc.d/init.d/
~# chmod +x /etc/init.d/archipel
~# archiper start
~# archipel status
* Archipel state: [RUNNING]
A webes felületen milyen userrel lehet belépni? Ez kell?:
archipel-tagnode --jid=admin@example.com --password=changeme --create
archipel-rolesnode --jid=admin@example.com --password=changeme --create
archipel-adminaccounts --jid=admin@example.com --password=changeme --create
archipel-vmparkingnode --jid=admin@example.com --password=changeme --create
archipel-vmrequestnode --jid=admin@example.com --password=changeme --create
archipel-testxmppserver --jid=admin@example.com --password=changeme
Vagy ez az ejabberd?
--
G.
- A hozzászóláshoz be kell jelentkezni
Szerintem te vagy nem érted ennek a működését, vagy nem olvastad el alaposan a dokumentációt.
Az egész Archipel működése XMPP alapú, ahol mind a szerverek, mind az őket kezelő adminok egy-egy Jabber felhasználóként léteznek.
Létre kell hoznod egy admin accot az ejabber-ben, azzal tudsz belépni a webes felületre is, mert az használja authentikálásra is.
https://github.com/ArchipelProject/Archipel/wiki/Ejabberd%3A-Configurat…
- A hozzászóláshoz be kell jelentkezni
Valóban nem látom egészen a működését. Az ejebberd-t (xmpp) sose használtam.
A leírás valóban nem tökéletes, ahogy egy hozzászóló már írta. Persze, lehet hogy csak én vagyok türelmetlen.
--
G.
- A hozzászóláshoz be kell jelentkezni
Ha ezt próbálom futtatni:
[root@fedora init.d]# archipel-tagnode --jid=admin@example.com --password=changeme --create
ERROR: cannot connect to the server. exiting
[root@fedora init.d]# ./archipel status
* Archipel state: [RUNNING]
[root@fedoranb init.d]# archipel-adminaccounts --jid=admin@localhost.localdomain --password=changeme --create
Traceback (most recent call last):
File "/bin/archipel-adminaccounts", line 5, in
pkg_resources.run_script('archipel-agent==0.6.0beta', 'archipel-adminaccounts')
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 492, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1350, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/lib/python2.7/site-packages/archipel_agent-0.6.0beta-py2.7.egg/EGG-INFO/scripts/archipel-adminaccounts", line 124, in
xmppclient = initialize(options)
File "/usr/lib/python2.7/site-packages/archipel_core-0.6.0beta-py2.7.egg/archipelcore/scriptutils.py", line 99, in initialize
xmppclient = connect(JID, options.password)
File "/usr/lib/python2.7/site-packages/archipel_core-0.6.0beta-py2.7.egg/archipelcore/scriptutils.py", line 80, in connect
if not xmppclient.connect():
File "build/bdist.linux-x86_64/egg/xmpp/client.py", line 200, in connect
File "build/bdist.linux-x86_64/egg/xmpp/client.py", line 184, in connect
File "build/bdist.linux-x86_64/egg/xmpp/dispatcher.py", line 303, in dispatch
File "build/bdist.linux-x86_64/egg/xmpp/dispatcher.py", line 215, in streamErrorHandler
xmpp.protocol.HostUnknown: (u'host-unknown', '')
Pontossabb leírást is adhatnának az archipel-hez... :(
--
G.
- A hozzászóláshoz be kell jelentkezni