std.http cannot be found from action-list

Bug #1602999 reported by Fan Dongyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Invalid
Critical
Hardik Parekh

Bug Description

I follow the guider of http://docs.openstack.org/developer/mistral/guides/installation_guide.html to
1. checkout/install Mistral using:
      -- git clone https://github.com/openstack/mistral.git
2. Prepares the DB, creates in it with all standard actions and standard workflows using:
      -- mistral-db-manage --config-file <path-to-mistral.conf> populate
      -- python tools/sync_db.py --config-file <path-to-mistral.conf>

3. Then I use "mistral action-list" to list actions but not find std.http, output is as following:

| tacker.delete_vnf | True | | None | <none> | 2016-07-14 08:02:23 | None |
| tacker.delete_vnfd | True | | None | <none> | 2016-07-14 08:02:23 | None |
| tacker.list_extensions | True | | None | <none> | 2016-07-14 08:02:23 | None |

std.wait_ssh is only one can be found with std prefix:

[root@localhost echo_service]# mistral action-list | grep std
| std.wait_ssh | False | host, username, password | Simple SSH command. | <none> | 2016-07-14 08:01:17 | None |
[root@localhost echo_service]# mistral action-list | grep http
[root@localhost echo_service]#

4. I run the populate command again and output is:
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: tacker.create_vnfd 'NoneType' object has no attribute 'Client'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: tacker.show_extension 'NoneType' object has no attribute 'Client'
/usr/lib/python2.7/site-packages/sqlalchemy/sql/default_comparator.py:153: SAWarning: The IN-predicate on "workflow_definitions_v2.id" was invoked with an empty sequence. This results in a contradiction, which nonetheless can be expensive to evaluate. Consider alternative strategies for improved performance.
  'strategies for improved performance.' % expr)

Please help to check what's wrong here? I list the code version as following:
[root@localhost mistral]# git log
commit 400c6227b45357c88ee362da123963c0b8175380
Author: Shaik Apsar <email address hidden>
Date: Mon Jul 11 10:55:25 2016 -0400

    Fix for YaqlEvaluationException in std.create_instance workflow.

    Change-Id: Id67f203ccd9d8aa5150a3b481bf042ec29276d55
    Closes-Bug:1599122

[root@localhost echo_service]# mistral --version
mistral 2.0.0

Changed in mistral:
milestone: none → newton-3
importance: Undecided → Critical
assignee: nobody → hardik (hardik-parekh047)
Revision history for this message
Hardik Parekh (hardik-parekh047) wrote :

Hi,

Can you share complete logs for "python tools/sync_db.py --config-file <path-to-mistral.conf>" ?
I cannot reproduce this bug.

Thanks!

Revision history for this message
Fan Dongyi (endact) wrote :

sorry, the environment has been broken.

Changed in mistral:
status: New → Incomplete
Revision history for this message
Fan Dongyi (endact) wrote :

I use Fedora to install Mistral and occurred this kind of issue. And I will use Ubuntu to try it again since I heard it's OK in Ubuntu.

Revision history for this message
futangw (futangw) wrote :
Download full text (20.0 KiB)

Hi,

I think this issue / bug must be fixed but i still got it on newton openstack (mistral 2.1.1).

anyone could give some hints? appreciated the help.

[root@controller-node mistral]# mistral-db-manage --config-file ./mistral.conf populate
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: keystone.service_catalog_get_endpoints 'NoneType' object has no attribute 'get_endpoints'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: keystone.service_catalog_get_urls 'NoneType' object has no attribute 'get_urls'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: keystone.service_catalog_is_valid 'NoneType' object has no attribute 'is_valid'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: keystone.service_catalog_url_for 'NoneType' object has no attribute 'url_for'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: keystone.service_catalog_get_data 'NoneType' object has no attribute 'get_data'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: keystone.service_catalog_factory 'NoneType' object has no attribute 'factory'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: keystone.service_catalog_get_token 'NoneType' object has no attribute 'get_token'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: keystone.service_catalog_catalog 'NoneType' object has no attribute 'catalog'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.delete_packet_filter 'Client' object has no attribute 'delete_packet_filter'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.delete_credential 'Client' object has no attribute 'delete_credential'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.delete_net_partition 'Client' object has no attribute 'delete_net_partition'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.update_credential 'Client' object has no attribute 'update_credential'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.list_network_profile_bindings 'Client' object has no attribute 'list_network_profile_bindings'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.list_network_profiles 'Client' object has no attribute 'list_network_profiles'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.list_packet_filters 'Client' object has no attribute 'list_packet_filters'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.create_packet_filter 'Client' object has no attribute 'create_packet_filter'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.show_net_partition 'Client' object has no attribute 'show_net_partition'
WARNING:mistral.actions.openstack.action_generator.base:Failed to create action: neutron.create_credential 'Client' object has no attribute 'create_credential'
WARNING...

Revision history for this message
Andras Kovi (akovi) wrote :

I think this bug is now obsolete. I have just checked locally:

.tox/venv/bin/mistral action-list | grep http
| d316ee78-4c49-4a96-90c3-3eed0b7d4727 | std.http | True | url, method="GET", params... | Constructs an HTTP action... | <none> | 2017-06-14 11:34:00 | None |
| 07d3cebe-cdfc-43bd-ad38-621f2c37be29 | std.mistral_http | True | action_context, url, meth... | None | <none> | 2017-06-14 11:34:00 | None |

Changed in mistral:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.