ironic setup(1) -- network_type flat not supported

淳于凯
2023-12-01

今天在篇日志ironic的时候,按照installed guide总是不成功,在/var/log/xxxx下面查看neutron的日志发现总是报错说"network_type value flat not supported",因此上网查看,结果在一段Openstack的IRC聊天记录里面找到了答案。

2015-01-27T18:33:17  <anderbubble> I’m following the instructions at http://docs.openstack.org/developer/ironic/deploy/install-guide.html, and have gotten as far as creating sharednet1; but neutron produces the error: create failed (client error): Invalid input for operation: network_type value 'flat' not supported.
2015-01-27T18:33:36  <anderbubble> Any advise on what I might be doing wrong?
2015-01-27T18:35:17  <NobodyCam> humm
2015-01-27T18:35:32  <anderbubble> (I should probably also say that I’m working from a recent RDO —allinone install.)
2015-01-27T18:35:34  <NobodyCam> i have not seen that one b4
2015-01-27T18:35:59  <anderbubble> Also, I’m *trying* to create sharednet1, just to be clear.
2015-01-27T18:36:04  <NobodyCam> are there Neutron logs to look at
2015-01-27T18:36:20  *** pensu has quit IRC
2015-01-27T18:37:30  <anderbubble> Sure; that’s where I got the aforementioned error. I’ll generate a pastebin.
2015-01-27T18:38:31  <NobodyCam> :)
2015-01-27T18:38:47  <anderbubble> Here’s the log output from /var/log/neutron/*.log when I run the net-create: http://pastebin.com/ekHpUpij
2015-01-27T18:39:07  *** ndipanov is now known as ndipanov_gone
2015-01-27T18:39:20  *** clif_h has quit IRC
2015-01-27T18:40:27  <anderbubble> actual command: neutron net-create --tenant-id c79a028b87964e10af2bf378f7d36754 sharednet1 --shared --provider:network_type flat --provider:physical_network physnet1
2015-01-27T18:41:39  *** clif has joined #openstack-ironic
2015-01-27T18:41:50  <NobodyCam> anderbubble: have you looked at https://trickycloud.wordpress.com/2013/11/12/setting-up-a-flat-network-with-neutron/ ... do you have service_neutron_metadata_proxy=false set... seems that can throw a 400 if not set
2015-01-27T18:42:05  *** clif is now known as clif_h
2015-01-27T18:42:53  <anderbubble> I haven’t, since I’m really just following that one install-guide at this point. :) That brings up a good side point: does ironic need the network to be flat, or can it do a vxnet?
2015-01-27T18:43:34  <NobodyCam> flat
2015-01-27T18:44:06  <anderbubble> service_neutron_metadata_proxy is commented-out in my nova.conf, and labeled as deprecated
2015-01-27T18:44:50  <anderbubble> (Bear with me: I’ve only just grok’d ovs in the first place.)
2015-01-27T18:45:40  <JayF> We like bears, it's fine.
2015-01-27T18:48:57  <anderbubble> Looks like I hadn’t restarted enough of neutron. I had only restarted neutron-openvswitch-agent before, as that’s the only one prompted for restart in the guide; but now that I’ve restarted every service with neutron in the name, it worked.
2015-01-27T18:49:19  <anderbubble> It’s possible that Red Hat divides neutron up into different services than (presumably) Ubuntu.
2015-01-27T18:52:55  *** harlowja has quit IRC
2015-01-27T18:54:44  <NobodyCam> anderbubble: I am sure that doc was written before the RH allinone product.. (now time for shameless plug) I would be very happy to review a doc patch that updates the install guide to cover what you encounter (end shameless plug)
2015-01-27T18:55:58  <anderbubble> I’m taking notes on my experience, noting differences between the guide and what I had to do. I’ll definitely note your name down, and ask (once I feel a little more comfortable) how best to update the docs.


总结下来就是,要重启neutron的所有服务,而不仅仅是neutron-openvswitch-agent.service


add:

配置中使用ironic node-create时候报错为:publicUrl endpoint not found

原因是前面创建ironic的endpoint的时候默认的region是regionOne,应该改为RegionOne


 类似资料: