Hi,

I can create manually an instance with the "openstack server create".

However, when yardstick does its magic I get the following error:
====
Writing /home/stack/yardstick_venv/lib/python2.7/site-packages/yardstick-
0.1.dev0-py2.7.egg/yardstick/resources/files/yardstick_key-e9b9c7c2 ...
Deploying context 'demo-86b44547'
2017-03-08 11:33:12,907 yardstick.orchestrator.heat heat.py:450 INFO Creating
stack 'demo-86b44547'
error: failed to deploy stack: 'Resource CREATE failed: ResourceInError:
resources.athena.demo-86b44547: Went to status ERROR due to "Message: No valid
host was found. There are not enough hosts available., Code: 500"'
Undeploying all contexts
====

And then - if I check the status:

(yardstick_venv) stack@wingenfelder:~/yardstick> openstack server list
+--------------------------------------+----------------------+--------+------
------------------------+--------------+
| ID                                   | Name                 | Status |
Networks                     | Image Name   |
+--------------------------------------+----------------------+--------+------
------------------------+--------------+
| c91fba90-500b-4c8e-86c3-f08b67a4f5e0 | athena.demo-86b44547 |
ERROR  |                              | cirros-0.3.3 |
| 14a415e9-adaa-4d8a-b465-e9ccff85cbd8 | ares.demo-86b44547   | ACTIVE | demo-
86b44547-test=10.0.1.11 | cirros-0.3.3 |
+--------------------------------------+----------------------+--------+------
------------------------+--------------+


Thanks,
Marco

On Wed, 2017-03-08 at 06:11 +0000, chenjiankun wrote:
> 
> 
> Hi,
>  
> Can you create an instance using openstack command manually?
>  
> Using the follow command:
> > openstack server create --image cirros-0.3.3 --flavor m1.small --nic net-
id=net04_ext server_name
> (you need to replace the flavor and nic value with your own.
> Using the follow command to get all flavors:
> openstack flavor list
> Using the follow command to get all network:
>          openstack network list
> )
>  
> > If you can create a instance, I think maybe there is something wrong with
yardstick.
> > If failed to create an instance, maybe there is something wrong with the
environment.
>  
> Regards,
> Jack Chan
>  
> 
> 
> From:
> > opnfv-tech-discuss-boun...@lists.opnfv.org 
> > [mailto:opnfv-tech-discuss-bounces@
lists.opnfv.org]
> On Behalf Of Marco Varlese
> 
> Sent: Thursday, March 02, 2017 9:34 PM
> 
> To: Tapio Tallgren; opnfv-tech-discuss@lists.opnfv.org
> 
> Subject: Re: [opnfv-tech-discuss] [yardstick] Yardstick run-time issue
> 
> 
> 
> 
>  
> 
> On Thu, 2017-03-02 at 14:34 +0200, Tapio Tallgren wrote:
> 
> 
> 
> 
> On 03/02/2017 02:15 PM, Marco Varlese wrote:
> 
> 
> 
> 
> On Thu, 2017-03-02 at 13:41 +0200, Tapio Tallgren wrote:
> 
> 
> 
> 
> On 03/02/2017 10:45 AM, Marco Varlese wrote:
> 
> 
> 
> 
> Hi,
> 
> 
> 
> > > In my previous email I did not mention the use of the docker image, I was
trying to install it on the system following the online Yardstick
documentation.
> 
> 
> 
>  
> 
> 
> 
> Why do I need to use the docker image necessarily? 
> 
> 
> 
>  
> 
> 
> 
> > I have been using a kvm VM for Yardstick. Docker is easier to use since you 
> > do
not need to set up the virtenv etc.
> 
> 
> 
> 
> 
> 
> 
> > Also, are there any particular reasons/dependencies why it has to be Ubuntu
14.04? It's quite "old" and the new LTS (16.04) has been out for a while.
> 
> 
> 
>  
> 
> 
> 
> 
> > > I just used the Xenial Ubuntu and it worked equally well. I downloaded and
booted the Xenial image, git cloned Yardstick to it, and then installed
Yardstick on it. For reporting, I used a Docker image.
> 
> 
> How did you setup the Openstack environment? 
> 
> 
> 
> In my case I cloned DevStack (master) and installed it on the box.
> 
> 
> 
>  
> 
> 
> 
> My setup has everything installed onto one single VM:
> 
> 
> 
> 1) DevStack (with Heat)
> 
> 
> 
> 2) Yardstick with its virtual-env
> 
> 
> 
>  
> 
> 
> 
> > And when I try launch the ping.yaml test case I get the error mentioned in 
> > my
prev email...
> 
> 
> 
>  
> 
> 
> 
> Any thoughts/ideas?
> 
> 
> 
>  
> 
> 
> 
> 
> 
> > I had a physical deployment. Since you are running everything in a VM, it is
best to use the virtenv and not launch another VM.
> 
> > > > Can you use the "openstack server list" command from the Yardstick 
> > > > virtenv? Do
you see cirros-0.3.3 when you do "openstack image list"? I think there was
some confusion about cirros-0.3.3 and cirros-0.3.4, but I cannot find the
reference right now.
> 
> 
>  
> 
> 
> 
> > Yes I can see it... I downloaded the image from 
> > http://download.cirros-cloud.n
et/0.3.3/cirros-0.3.3-x86_64-disk.img
> 
> 
> 
> and installed it via glance...
> 
> 
> 
>  
> 
> 
> 
> +--------------------------------------+--------------------------+--------+
> 
> 
> 
> | ID                                   | Name                     | Status |
> 
> 
> 
> +--------------------------------------+--------------------------+--------+
> 
> 
> 
> | 03e72a29-88fc-4be7-90e4-70173fa80ce2 | cirros-0.3.3             | active |
> 
> 
> 
> +--------------------------------------+--------------------------+--------+
> 
> 
> 
>  
> 
> 
> 
> ====
> 
> 
> 
>  
> 
> 
> 
> > I just redeployed everything on a physical machine... just following the 
> > same
steps... the error I get now is different 
> 
> 
> 
>  
> 
> 
> 
> > Writing /root/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-
py2.7.egg/yardstick/resources/files/yardstick_key-1d2a644a ...
> 
> 
> 
> Deploying context 'demo-d3c047d1'
> 
> 
> 
> > 2017-03-02 14:22:26,407 yardstick.orchestrator.heat heat.py:450 INFO 
> > Creating
stack 'demo-d3c047d1'
> 
> 
> 
>  
> 
> 
> 
> > error: failed to deploy stack: 'ERROR: <!DOCTYPE HTML PUBLIC "-//IETF//DTD
HTML 2.0//EN">
> 
> 
> 
> <html><head>
> 
> 
> 
> <title>504 Gateway Timeout</title>
> 
> 
> 
> </head><body>
> 
> 
> 
> <h1>Gateway Timeout</h1>
> 
> 
> 
> <p>The gateway did not receive a timely response
> 
> 
> 
> from the upstream server or application.</p>
> 
> 
> 
> </body></html>
> 
> 
> 
> '
> 
> 
> 
> Undeploying all contexts
> 
> 
> 
>  
> 
> 
> 
> ======
> 
> 
> 
>  
> 
> 
> 
> These are my ENV variables:
> 
> 
> 
>  
> 
> 
> 
> OS_PROJECT_DOMAIN_ID=default
> 
> 
> 
> OS_REGION_NAME=RegionOne
> 
> 
> 
> OS_USER_DOMAIN_ID=default
> 
> 
> 
> OS_PROJECT_NAME=demo
> 
> 
> 
> OS_IDENTITY_API_VERSION=3
> 
> 
> 
> OS_PASSWORD=secret
> 
> 
> 
> OS_AUTH_URL=http://AA.BBB.CC.DDD:5000/v2.0
> 
> 
> 
> OS_USERNAME=demo
> 
> 
> 
> OS_TENANT_NAME=demo
> 
> 
> 
> OS_VOLUME_API_VERSION=2
> 
> 
> 
> EXTERNAL_NETWORK=net04_ext
> 
> 
> 
>  
> 
> 
> 
> > > Interestingly, the openrc file (which I have to source) by default uses 
> > > v3 for
the OS_AUTH_URL but I had to change it to v2.0 because Yardstick was
complaining with the following error:
> 
> 
> 
> > > > error: failed to deploy stack: 'Expecting to find domain in project. The
server could not comply with the request since it is either malformed or
otherwise incorrect. The client is assumed to be in error. (HTTP 400)
(Request-ID:
>  req-dff1cdff-1eeb-40a5-94a4-b250444ed32b)'
> 
> 
> 
>  
> 
> 
> 
> 
> 
> -Tapio
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> Thanks,
> 
> 
> 
> Marco
> 
> 
> 
>  
> 
> 
> 
> 
> 
> -Tapio
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> Thanks,
> 
> 
> 
> Marco
> 
> 
> 
>  
> 
> 
> 
> On Thu, 2017-03-02 at 08:35 +0000, chenjiankun wrote:
> 
> 
> 
> 
> Hi Marco,
>  
> What’s the latest status of this issue?
> Does my solution be OK for you?
>  
> I’m looking forward to your reply.
>  
> Regards,
> Jack Chan
>  
> 
> 
> From: chenjiankun
> 
> 
> Sent: Thursday, February 23, 2017 5:25 PM
> 
> To: 'Marco Varlese'
> 
> Cc: opnfv-tech-discuss@lists.opnfv.org
> 
> Subject: RE: [opnfv-tech-discuss] [yardstick] Yardstick run-time issue
> 
> 
> 
> 
>  
> Hi Marco,
>  
> I am Jack from yardstick team.
>  
> > I haven’t experienced this issue before. But it seems there are some errors
with the cirros image.
> I think you can try to run ping test case in the follow steps:
>  
> 1.       docker run -itd --privileged --name yardstick opnfv/yardstick:latest
> 2.       docker exec -it yardstick bash
> 3.       config and source the openstack openrc file(include EXTERNAL_NETWORK)
> 4.       load images: you can execute the follow command in this directory:
> cd /home/opnfv/repos/yardstick
>          bash tests/ci/load_image.sh
> 5.       run test case
>          yardstick -d task start sample/ping.yaml
>  
> BTW, can you tell me:
> 1.       what’s your Openstack version in your SUT?
> 2.       Which yardstick docker are you using?
>  
> If you have any other questions, please feel free to let me know. Thanks.
>  
> Best Regards,
> Jack Chan
>  
>  
> -----Original Message-----
> 
> > > From: opnfv-tech-discuss-boun...@lists.opnfv.org 
> > > [mailto:opnfv-tech-discuss-bo
un...@lists.opnfv.org] On Behalf Of Marco Varlese
> 
> Sent: Tuesday, February 21, 2017 7:37 PM
> 
> To: opnfv-tech-discuss@lists.opnfv.org
> 
> Subject: [opnfv-tech-discuss] Yardstick run-time issue
>  
> Hi,
> > I'm trying to setup an environment to deploy Yardstick; to start with I'm
doing everything in one single Virtual machine.
>  
> > > The Virtual Machine basically represent both the Jumphost and the SUT. I
understand this is not the best to measure performance but my real lab setup
is being currently worked on and I'd like to get ahead of the game
>  with learning.
>  
> > I have an Openstack environment installed via Devstack (master branch)
including Heat.
>  
> When I try and launch the ping.yaml test case I get the following error:
>  
> > 2017-02-21 12:18:29,515 yardstick.orchestrator.heat heat.py:440 INFO 
> > Creating
stack 'demo-054b1f93'
> error: failed to deploy stack: 'ERROR: Property error: : resources.ares.demo-
> > 054b1f93.properties.image: : "cirros-0.3.3" does not validate glance.image
(constraint not found)'
>  
> Has anybody experienced this issue before?
>  
> Any help or input would be much appreciated.
>  
>  
> Thanks,
> Marco
>  
> _______________________________________________
> opnfv-tech-discuss mailing list
> opnfv-tech-discuss@lists.opnfv.org
> https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> opnfv-tech-discuss mailing list
> opnfv-tech-discuss@lists.opnfv.org
> https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
>  
> _______________________________________________
> opnfv-tech-discuss mailing list
> opnfv-tech-discuss@lists.opnfv.org
> https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
> 
>  
> 
> 
> 
> 
> 
_______________________________________________
opnfv-tech-discuss mailing list
opnfv-tech-discuss@lists.opnfv.org
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to