<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Wed, Jan 2, 2019 at 10:03 AM Jeff Yang <<a href="mailto:yjf1970231893@gmail.com">yjf1970231893@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Please confirm whether "auth_strategy" is set as ''keystone" in configure file. I remember that the value of  "auth_strategy" is set as "noauth" in "/usr/share/octavia/octavia-dist.conf"  default if you install octavia by rpm. If the value was set as "noauth<font color="rgba(0, 0, 0, 0)">", you must </font>manually <font color="rgba(0, 0, 0, 0)">specify "project_id" for </font>octavia<font color="rgba(0, 0, 0, 0)">.</font>  <br></div><br></blockquote><div><br></div><div>Yeah, that could be the reason[1] (when deploying with puppet puppet-octavia sets it to keystone[2]), as the error is coming from octavia[3], when you don't specify a project_id in request and the context does not have it either.</div><div><br></div>[1] <a href="https://github.com/rdo-packages/octavia-distgit/blob/rpm-master/octavia-dist.conf#L3">https://github.com/rdo-packages/octavia-distgit/blob/rpm-master/octavia-dist.conf#L3</a></div><div class="gmail_quote">[2] <a href="https://github.com/openstack/puppet-octavia/blob/master/manifests/api.pp#L65">https://github.com/openstack/puppet-octavia/blob/master/manifests/api.pp#L65</a><br></div><div class="gmail_quote"><div>[3] <a href="https://github.com/openstack/octavia/blob/master/octavia/api/v2/controllers/load_balancer.py#L251">https://github.com/openstack/octavia/blob/master/octavia/api/v2/controllers/load_balancer.py#L251</a><br></div><br></div><div class="gmail_quote">Jeff Yang <<a href="mailto:yjf1970231893@gmail.com" target="_blank">yjf1970231893@gmail.com</a>> 于2019年1月2日周三 下午12:26写道:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Please confirm whether "auth_strategy" is set as ''keystone" in configure file. I remember that the value of  "auth_strategy" is set as "noauth" in "/usr/share/octavia/octavia-dist.conf"  default if you install octavia by rpm. If the value was set as "noauth<font color="rgba(0, 0, 0, 0)">", you must </font>manually <font color="rgba(0, 0, 0, 0)">specify "project_id" for </font>octavia<font color="rgba(0, 0, 0, 0)">.</font></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Zane Bitter <<a href="mailto:zbitter@redhat.com" target="_blank">zbitter@redhat.com</a>> 于2019年1月2日周三 上午11:23写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2/01/19 1:34 AM, Adam Harwell wrote:<br>
> I'm just on my phone over the holidays, but it kinda looks like the code <br>
> for this was just updated 12 days ago:<br>
> <a href="https://review.openstack.org/#/c/619577/" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/619577/</a><br>
> <br>
> If you're using that new code, I imagine it's possible there could be a <br>
> bug that wasn't yet caught... If you're NOT using that code, maybe try <br>
> it and see if it helps? I'm guessing it's related one way or another. If <br>
> you come to the #openstack-lbaas channel once more people are around <br>
> (later this week?), we can probably take a look.<br>
<br>
That's only the example template (previously it was an example for <br>
LBaaSv2; now it's an example for Octavia); there's been no recent change <br>
to the code.<br>
<br>
>       --Adam Harwell (rm_work)<br>
> <br>
> On Sun, Dec 30, 2018, 03:37 Zufar Dhiyaulhaq <<a href="mailto:zufardhiyaulhaq@gmail.com" target="_blank">zufardhiyaulhaq@gmail.com</a> <br>
> <mailto:<a href="mailto:zufardhiyaulhaq@gmail.com" target="_blank">zufardhiyaulhaq@gmail.com</a>>> wrote:<br>
> <br>
>     I have try creating load balancer with Heat. but always get this error :<br>
> <br>
>     Resource CREATE failed: OctaviaClientException:<br>
>     resources.loadbalancer: Validation failure: Missing project ID in<br>
>     request where one is required. (HTTP 400) (Request-ID:<br>
>     req-b45208e1-a200-47f9-8aad-b130c4c12272)<br>
> <br>
>     OctaviaClientException: resources.loadbalancer: Validation failure:<br>
>     Missing project ID in request where one is required. (HTTP 400)<br>
>     (Request-ID: req-b45208e1-a200-47f9-8aad-b130c4c12272)<br>
<br>
What version of OpenStack are you using?<br>
<br>
The issue is that Heat is sending a "tenant_id" but Octavia wants a <br>
"project_id", which is the new name for the same thing. (I think you <br>
likely modified that template after trying it but before uploading it, <br>
because there is no "project_id" property in Heat's <br>
OS::Octavia::LoadBalancer resource type.)<br>
<br>
This bug has been reported and there is a patch up for review in Heat: <br>
<a href="https://storyboard.openstack.org/#!/story/2004650" rel="noreferrer" target="_blank">https://storyboard.openstack.org/#!/story/2004650</a><br>
<br>
There was a change to Octavia in Pike <br>
(<a href="https://review.openstack.org/455442" rel="noreferrer" target="_blank">https://review.openstack.org/455442</a>) to add backwards compatibility, <br>
but it was either incomplete or the problem reoccurred and was fixed <br>
again in Rocky (<a href="https://review.openstack.org/569881" rel="noreferrer" target="_blank">https://review.openstack.org/569881</a>). My guess is that <br>
it's likely broken in Pike and Queens.<br>
<br>
I'd certainly have expected Heat's gate tests to pick up the problem, <br>
and it's a bit of a mystery why they didn't. Perhaps we're not <br>
exercising the case where a project_id is required (using it at all is <br>
an admin-only feature, so that's not too surprising I guess; it's <br>
actually more surprising that there's a case where it's _required_).<br>
<br>
cheers,<br>
Zane.<br>
<br>
>     I create 2 openstack environment :<br>
> <br>
>       * Heat with Octavia (Octavia Heat Template :<br>
>         <a href="http://paste.opensuse.org/view//33592182" rel="noreferrer" target="_blank">http://paste.opensuse.org/view//33592182</a> )<br>
>       * Heat with Neutron Lbaasv2 (Neutron LBaaSv2 Heat Template :<br>
>         <a href="http://paste.opensuse.org/view//71741503" rel="noreferrer" target="_blank">http://paste.opensuse.org/view//71741503</a>)<br>
> <br>
>     But always error when creating with octavia :<br>
> <br>
>       * Octavia Log (<a href="https://imgur.com/a/EsuWvla" rel="noreferrer" target="_blank">https://imgur.com/a/EsuWvla</a>)<br>
>       * LBaaS v2 (<a href="https://imgur.com/a/BqNGRPH" rel="noreferrer" target="_blank">https://imgur.com/a/BqNGRPH</a>)<br>
> <br>
>     Are Heat code is broken to create Octavia Load Balancer?<br>
> <br>
>     Best Regards,<br>
>     Zufar Dhiyaulhaq<br>
> <br>
<br>
<br>
</blockquote></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Regards,</div>Rabi Mishra<div><br></div></div></div></div></div></div></div></div></div></div>