Coder Social home page Coder Social logo

cloudforms_essentials's People

Contributors

01000101 avatar jeffmcutter avatar jeromemarc avatar johnsimcall avatar ramrexx avatar stencell avatar syncrou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloudforms_essentials's Issues

CloudForms 4.6 Support

Could you update this project to support CloudForms 4.6 version which is current stable version.
Thanks in advance.

CloudForms Fabric Backup

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.

Import deletes existing content

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.

Domain doesn't use system provided AWS provider.

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

Need assistance with Amazon vm provision request

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

openstack_create_loadbalancer Error

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

When I try to import roles or service catalogs in CF4.1 it fails in the rake script

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:inmethod_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:inblock 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:inimport_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:inblock 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:intransaction'
/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:inblock (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:inblock 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:inimport'
/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 useconfig.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:inrescue 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:inimport'
/var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:85:in block (3 levels) in <top (required)>' NoMethodError: undefined methodfind_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:inblock 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:inimport_roles'
/var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:8:in import' /var/www/miq/vmdb/lib/tasks/rhconsulting_roles.rake:85:inblock (3 levels) in <top (required)>'
Tasks: TOP => rhconsulting:roles:import
(See full trace by running task with --trace)

The Automate datastore is missing ec2 methods

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.

Cannot Import the automation code

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

Service catalogues

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.

DialogParser?

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

Error in RHEV - Build a VM * catalog items

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

Installation without internet access

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.

importing alerts, reports and customization_templates broken

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.