ramrexx / cloudforms_essentials Goto Github PK
View Code? Open in Web Editor NEWRed Hat CloudForms Essentials Project
License: Apache License 2.0
Red Hat CloudForms Essentials Project
License: Apache License 2.0
I am getting below error and application not working after adding this.
Errno::EACCES: Permission denied @ dir_s_mkdir - /var/lib/data
@ramrexx any suggestions please.
Do you have something like this which you had already done.
https://pemcg.gitbooks.io/introduction-to-cloudforms-automation/content/chapter15/approval.html
When any service request raised by end user, it should be approved by administrator.
Could you update this project to support CloudForms 4.6 version which is current stable version.
Thanks in advance.
Is there Ansible automated way to make a CloudForms entire backup and restore in new CloudForms appliance.
It would be more helpful while we will upgrade into newer version.
I had a button defined in (an existing) button group Service/Service Ops. The (offline) import method deleted this button. Import should check existing content conflicts.
I was poking around ec2_synchronize_tags and saw that it makes it's own EC2 client object (using the old "cfme system provided" ruby sdk 1.54).
This means that it doesn't use the system defined proxy config.
I've written a bit about this here:
http://talk.manageiq.org/t/help-getting-access-to-server-config-proxy-url/1724
My question to ManageIQ/Redhat is: how does my "user space" domain access "VMDB::Util.http_proxy_uri" which I think is private.
Now that I think of it an alternative is to use the systems provided AWS provder / client. I'm going to look into how one might do that .In my mind ideally this domain should be able to use the system provided provider but I'm pretty ignorant of the nuts and bolts and hows and whys.
Any comment / ideas?
David
Hi Team,
I am trying to spin up a VM on AWS and I understand pretty much about the service dialogs and catalog items. I am trying to pass some variables in my service catalogs like the instance type, region so that the user can enter the relevant info and spin up the VM's.
Currently my catalog accepts vm_name and service_name variables from the catalogs and its because the customization codes already comes out of the box with CloudForms. However I need to use the codes for instance_type and such,so that I can provide my end user the complete customization during VM build. I found your team's code for Amazon request in the following link
https://github.com/ramrexx/CloudFormsPOC/blob/master/Automate/CloudFormsPOC/Service/Provisioning/StateMachines/Methods.class/__methods__/amazon_build_vmprovision_request.rb
So where exactly in my CloudForms should I use this code and in which domain do I have to update it so that my vm request could pick up the code and apply the customization. Currently my catalog item points to the entry point to /Service/Provisioing/.../CatalogItemInitialization
I am using Cloudforms version 4.6 and pretty much learning CloudForms, tried reading Mastering Cloudforms Automation book in which some of the concepts I could able to understand. Please assist me on this
I'm sorry you had to suffer from my foolishness.
I use this repository openstack_create_loadbalancer script, In ManageIQ Automation, syntax check is error. Even if I delete the code to make it run, there are many variables that are not defined.
I have created the relevant dialog box, you did not finish ? or am I doing wrong? Please advise
Hello,
When I try to import roles or service catalogs in CF4.1 Beta 5 (5.6.0.10-rc2.1) it fails
[root@cloudforms CloudForms_Essentials-master]# /usr/bin/miqimport service_catalogs /root/CloudForms_Essentials-master/service_catalogs/ --trace
/var/www/miq/vmdb ~/CloudForms_Essentials-master
DEPRECATION WARNING: config.serve_static_files
is deprecated and will be removed in Rails 5.1.
Please use config.public_file_server.enabled = false
instead.
(called from serve_static_files= at /opt/rh/cfme-gemset/gems/railties-5.0.0.rc1/lib/rails/application/configuration.rb:80)
Service Catalog: [Cloud Services]
rake aborted!
NoMethodError: undefined method find_or_create_by_name' for #<ServiceTemplateCatalog::ActiveRecord_Relation:0x0000000cd0a4d8> /opt/rh/cfme-gemset/bundler/gems/rails-61b074f40164/activerecord/lib/active_record/relation/delegation.rb:123:in
method_missing'
/opt/rh/cfme-gemset/bundler/gems/rails-61b074f40164/activerecord/lib/active_record/relation/delegation.rb:93:in method_missing' /var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:53:in
block in import_service_template_catalogs'
/var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:51:in each' /var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:51:in
import_service_template_catalogs'
/var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:12:in block (3 levels) in import' /opt/rh/cfme-gemset/bundler/gems/rails-61b074f40164/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in
block in transaction'
/opt/rh/cfme-gemset/bundler/gems/rails-61b074f40164/activerecord/lib/active_record/connection_adapters/abstract/transaction.rb:189:in within_new_transaction' /opt/rh/cfme-gemset/bundler/gems/rails-61b074f40164/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in
transaction'
/opt/rh/cfme-gemset/bundler/gems/rails-61b074f40164/activerecord/lib/active_record/transactions.rb:211:in transaction' /var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:11:in
block (2 levels) in import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:8:in each' /var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:8:in
block in import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:5:in foreach' /var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:5:in
import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_service_catalogs.rake:279:in block (3 levels) in <top (required)>' Tasks: TOP => rhconsulting:service_catalogs:import (See full trace by running task with --trace) ~/CloudForms_Essentials-master [root@cloudforms CloudForms_Essentials-master]# /usr/bin/miqimport roles /root/CloudForms_Essentials-master/roles/roles.yml /var/www/miq/vmdb ~/CloudForms_Essentials-master DEPRECATION WARNING:
config.serve_static_filesis deprecated and will be removed in Rails 5.1. Please use
config.public_file_server.enabled = falseinstead. (called from serve_static_files= at /opt/rh/cfme-gemset/gems/railties-5.0.0.rc1/lib/rails/application/configuration.rb:80) rake aborted! RoleImportExport::ParsedNonDialogYamlError: RoleImportExport::ParsedNonDialogYamlError /var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:57:in
rescue in import_roles'
/var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:48:in import_roles' /var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:8:in
import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:85:in block (3 levels) in <top (required)>' NoMethodError: undefined method
find_or_create_by_name' for #Class:0x000000026475d8
/opt/rh/cfme-gemset/bundler/gems/rails-61b074f40164/activerecord/lib/active_record/dynamic_matchers.rb:21:in method_missing' /var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:53:in
block in import_roles'
/var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:49:in each' /var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:49:in
import_roles'
/var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:8:in import' /var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:85:in
block (3 levels) in <top (required)>'
Tasks: TOP => rhconsulting:roles:import
(See full trace by running task with --trace)
The latest versions is missing the Methods from Integration\Amazon\EC2 and Integration\Amazon\RDS
Which causes this error on setting up an EC2 instance
[----] I, [2016-10-28T10:27:32.060148 #3264:699998] INFO -- : Q-task_id([miq_provision_1000000000105]) Processing State=[PostProvision2]
[----] I, [2016-10-28T10:27:32.060457 #3264:699998] INFO -- : Q-task_id([miq_provision_1000000000105]) Following Relationship [miqaedb:/Integration/Amazon/EC2/Methods/EC2_Synchronize_Tags#create]
[----] E, [2016-10-28T10:27:32.185635 #3264:699998] ERROR -- : Q-task_id([miq_provision_1000000000105]) Class [Integration/Amazon/EC2/Methods] not found in MiqAeDatastore
[----] I, [2016-10-28T10:27:32.185787 #3264:699998] INFO -- : Q-task_id([miq_provision_1000000000105]) Followed Relationship [miqaedb:/Integration/Amazon/EC2/Methods/EC2_Synchronize_Tags#create]
[----] E, [2016-10-28T10:27:32.185949 #3264:699998] ERROR -- : Q-task_id([miq_provision_1000000000105]) State= running raised exception:
[----] W, [2016-10-28T10:27:32.186156 #3264:699998] WARN -- : Q-task_id([miq_provision_1000000000105]) Error in State=[PostProvision2]
[----] I, [2016-10-28T10:27:32.186346 #3264:699998] INFO -- : Q-task_id([miq_provision_1000000000105]) In State=[PostProvision2], invoking [on_error] method=[update_provision_status(status => 'Error Applying PostProvision1 Customizations')]
I copied the Methods from a previous version and all worked ok.
When running the ansible playbook the automation code is not imported.
Trying to install with miqimport I got the following error:
miqimport --overwrite domain CloudForms_Essentials /root/CloudForms_Essentials/automate
DOMAIN_OPTIONS=overwrite=true;enabled=true;
/var/www/miq/vmdb ~/CloudForms_Essentials/automate
rake aborted!
MiqAeException::FieldNotFound: Field [execute] not found in MiqAeDatastore
Than zipped the automation directory, and try to import with the MIQ/CF webui the following error is raised:
Field [execute] not found in MiqAeDatastore [miq_ae_tools/import_automate_datastore]
Tried this in MIQ Fine-3 and CF 4.5
Subject.
Investigating further.
Hello,
Can you provide one sample service dialogues for deploy instances from CloudForms in OpenStack environment.
I used your CloudForms POC, but it's throwing with error message.
I am unable to provision Instances.
This is an amazing resource for managing OpenStack from ManageIQ/ Cloudforms! Thanks very much for publishing to Github.
A quick question - the build_vm_provision_request.rb method under the Service provisioning state machine references a DialogParser method. I couldn't find the method in its referenced location (/Service/Provisioning/StateMachines/Methods/DialogParser). Can anyone please help out?
Thanks again.
Shane
Around line 367. This fails if line 255 doesn't get a valid @Tenant, which is acceptable.
When requesting a VM from oVirt I get an error instead of list of available vm templates. evm.log has:
[----] E, [2016-04-22T09:00:45.990981 #3202:fdf034] ERROR -- : <AutomationEngine> Method STDERR: (druby://127.0.0.1:32809) /var/www/miq/vmdb/lib/miq_automation_engine/engine/miq_ae_service_model_base.rb:179:in method_missing: undefined method miq_templates for #<MiqAeMethodService::MiqAeServiceManageIQ_Providers_Redhat_InfraManager:0x0000000357b608> (NoMethodError) [----] E, [2016-04-22T09:00:45.991696 #3202:fdf034] ERROR -- : <AutomationEngine> Method STDERR: from <code: provider.miq_templates.each do |template|>:115:in <main> provider.miq_templates.each do |template|
If I go to Integration/RedHat/RHEV/DynamicDialogs/list_rhev_template_guids, and comment out searching for templates on a provider (lines 114-120), I can get a list of all oVirt templates.
So, to me it looks like I do get a provider object, but it is missing miq_templates method. Should this work with ManageIQ/oVirt, or does it require Cloudforms/RHEV?
I have ManageIQ Capablanca and oVirt 3.6
As a system administrator, on a CF appliance that doesn't have internet access, I would like to install this project.
For example by downloading a .tgz/.zip to my laptop, then uploading via a vpn, then running Ansible.
Trying to import reports:
[root@test reports]# miqimport reports .
/var/www/miq/vmdb ~/CloudForms_Essentials-master/reports
rake aborted!
Incorrect format, only policy records can be imported.
/var/www/miq/vmdb/app/models/miq_report/import_export.rb:11:in `import_from_hash'
/var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake:15:in `block (3 levels) in import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake:14:in `each'
/var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake:14:in `block (2 levels) in import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake:11:in `foreach'
/var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake:11:in `block in import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake:10:in `import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_reports.rake:46:in `block (3 levels) in <top (required)>'
Tasks: TOP => rhconsulting:miq_reports:import
(See full trace by running task with --trace)
~/CloudForms_Essentials-master/reports
Trying to import alerts:
[root@test alerts]# miqimport buttons .
/var/www/miq/vmdb ~/CloudForms_Essentials-master/alerts
rake aborted!
TypeError: no implicit conversion of Symbol into Integer
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:63:in `[]'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:63:in `block in import_file'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:62:in `import_file'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:12:in `block in import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:11:in `glob'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:11:in `import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_buttons.rake:267:in `block (3 levels) in <top (required)>'
Tasks: TOP => rhconsulting:buttons:import
(See full trace by running task with --trace)
~/CloudForms_Essentials-master/alerts
Trying to import customization templates:
[root@test customization_templates]# miqimport customization_templates .
/var/www/miq/vmdb ~/CloudForms_Essentials-master/customization_templates
rake aborted!
CustomizationTemplateImportExport::ParsedNonDialogYamlError: CustomizationTemplateImportExport::ParsedNonDialogYamlError
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:60:in `rescue in import_customization_templates'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:55:in `import_customization_templates'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:16:in `block in import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:14:in `glob'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:14:in `import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:93:in `block (3 levels) in <top (required)>'
NoMethodError: undefined method `each' for "<%":String
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:56:in `import_customization_templates'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:16:in `block in import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:14:in `glob'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:14:in `import'
/var/www/miq/vmdb/lib/tasks/rhconsulting_customization_templates.rake:93:in `block (3 levels) in <top (required)>'
Tasks: TOP => rhconsulting:customization_templates:import
(See full trace by running task with --trace)
~/CloudForms_Essentials-master/customization_templates
I am getting below error and application not working after adding this.
Errno::EACCES: Permission denied @ dir_s_mkdir - /var/lib/data
@ramrexx any suggestions please.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.