openstack instance无法得到IP

openstack instance 无法得到IP,日志显示 Received DHCP NAK ,谁遇到过这种问题啊?

在horizon中可以看到分到了IP,系统日志中也显示分到了IP,但是实例得不到Ip。日志如下:

1.系统日志

Jun 05 11:50:46 openstack-icehouse dnsmasq-dhcp[25577]: DHCPDISCOVER(tape31caf30-ed) fa:16:3e:2e:0b:d6
Jun 05 11:50:46 openstack-icehouse dnsmasq-dhcp[25577]: DHCPOFFER(tape31caf30-ed) 10.5.1.212 fa:16:3e:2e:0b:d6
Jun 05 11:50:46 openstack-icehouse dnsmasq-dhcp[25577]: DHCPREQUEST(tape31caf30-ed) 10.5.1.212 fa:16:3e:2e:0b:d6
Jun 05 11:50:46 openstack-icehouse dnsmasq-dhcp[25577]: DHCPACK(tape31caf30-ed) 10.5.1.212 fa:16:3e:2e:0b:d6 host-10-5-1-212
Jun 05 11:50:49 openstack-icehouse dnsmasq-dhcp[25577]: DHCPDISCOVER(tape31caf30-ed) fa:16:3e:2e:0b:d6
Jun 05 11:50:49 openstack-icehouse dnsmasq-dhcp[25577]: DHCPOFFER(tape31caf30-ed) 10.5.1.212 fa:16:3e:2e:0b:d6

2.虚拟机console-log

Starting network...
udhcpc (v1.18.5) started
Sending discover...
Sending select for 10.5.1.212...
Received DHCP NAK
Sending discover...

网络架构是: neutron + ml2 + ovs

1个回答

请问楼主这个问题最终是怎么解决的?我也是遇到这个问题,纠结好几天了555555实在不想再重装了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
openstack neutron 添加路由接口指定ip问题

openstack dashboard中,添加路由接口的时候,可以指定选定的子网的ip地址,但是在调用rest api进行开发时,却没有相应的参数,求大神解答 ![图片说明](https://img-ask.csdn.net/upload/201508/17/1439803578_196298.png) 上图中红框中的ip地址如何调用rest api进行设置

虚拟机上搭建openstack时,分配私有网络IP池时报错

虚拟机上搭建openstack时,分配私有网络IP池时报错,执行的命令: sudo nova-manage network create private 192.168.4.0/24 1 256 报错信息: CRITICAL nova [-] --bridge_interface is required to create a network. 求问有知道的不,谢谢

openstack netron公网配置

如何配置External network才能通? 我的环境是虚机直接使用物理机的网卡(桥接), 网关是家里路由的IP:192.168.0.1 虚机获得的IP是:192.168.0.160 (手动配置为静态IP,能访问外网,外网也能访问该虚机) 虚机上br-ex配置的DNS server是:8.8.8.8 配置external network的subnet如下, Name:publicsub ID:b80a130a-74d2-4411-93de-096e6cf9eba2 Network ID:4666d0d0-2375-4721-8418-a746773069c8 IP version:IPv4 CIDR:192.168.0.0/24 IP allocation pool: Start 192.168.0.161 - End 192.168.0.199 Gateway IP:192.168.0.1 DHCP Enable:No Additional routes:None DNS name server:None openstack中把各种配置好之后启动的instance实例无法运行。router和private net应该没有问题,从ip addr show 里面能看到打开的几个port的状态是UP的,感觉是因为直接使用家里路由器的IP做为网关,通过路由连接外网,因为路由是有密码的,所以不能自动分配floating IP 161-199给这个网来使用。但如果是真实的物理机应该也会遇到类似的问题,请教高手应该如何配置这个公网才能与外界联通?谢谢~

openstack创建的VM与外网无法通信,如何解决?

openstack的控制机IP192.168.99.211 网关192.168.99.1,并且可以正常上网。 openstack的计算机节点IP192.168.99.212 网关192.168.99.1,并且可以正常上网。 安装成功后,1、配置了两个网络,一个是外部网络,一个是客户网络。 ![图片说明](https://img-ask.csdn.net/upload/201908/14/1565772874_315405.jpg) 2、创建路由:将客户网络和外部网络连接,建立路由关系。 ![图片说明](https://img-ask.csdn.net/upload/201908/14/1565773116_764352.jpg) 在创建实例时所使用的网络为客户网络。当vm启动后正常获取到了IP地址192.168.1.101,网关192.168.1.1,外部网络接口的IP地址为192.168.99.71 在VM中PING192.168.1.1和192.168.99.71者正常,但是ping控制节点 192.168.99.211时却不正常。 ![图片说明](https://img-ask.csdn.net/upload/201908/14/1565773956_729026.jpg) 请问问题出在什么地方。

centos下 openstack yum无法安装dashboard

报错 Error: Package: python-django-openstack-auth-1.1.2-1.el6.noarch (openstack-havana) Requires: Django14 Error: Package: python-django-appconf-0.5-3.el6.noarch (openstack-havana) Requires: Django14 Error: Package: python-django-horizon-2013.2.3-1.el6.noarch (openstack-havana) Requires: Django14 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

[Openstack] 实例创建成功,但是无法启动,看日志也没有报错

安装的是ocata版,完全按照官网教程安装,能成功创建实例,但是实例启动一直卡在首屏。使用的是cirros镜像,使用其他镜像也是这个样子。新手一枚,求大神指点。 ![实例创建成功](https://img-ask.csdn.net/upload/201704/05/1491373558_34964.png) ![实例运行界面](https://img-ask.csdn.net/upload/201704/05/1491373587_6132.png) 实例配置 ``` <domain type='kvm' id='3'> <name>instance-00000006</name> <uuid>ae16fac3-d418-497a-9959-4f2de116ad87</uuid> <metadata> <nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0"> <nova:package version="15.0.0-1.el7"/> <nova:name>test</nova:name> <nova:creationTime>2017-04-04 17:53:38</nova:creationTime> <nova:flavor name="m1.nano"> <nova:memory>64</nova:memory> <nova:disk>1</nova:disk> <nova:swap>0</nova:swap> <nova:ephemeral>0</nova:ephemeral> <nova:vcpus>1</nova:vcpus> </nova:flavor> <nova:owner> <nova:user uuid="c4eadda47b5e41e9940dd418962b0ab8">admin</nova:user> <nova:project uuid="ac2906f775a24cb48b1040c22f7d07ec">admin</nova:project> </nova:owner> <nova:root type="image" uuid="c92a6bae-b1a0-4296-af5c-a6b34189c0eb"/> </nova:instance> </metadata> <memory unit='KiB'>65536</memory> <currentMemory unit='KiB'>65536</currentMemory> <vcpu placement='static'>1</vcpu> <cputune> <shares>1024</shares> </cputune> <resource> <partition>/machine</partition> </resource> <sysinfo type='smbios'> <system> <entry name='manufacturer'>RDO</entry> <entry name='product'>OpenStack Compute</entry> <entry name='version'>15.0.0-1.el7</entry> <entry name='serial'>4dd6358f-1ebd-4634-9f0f-0d26d3dd4993</entry> <entry name='uuid'>ae16fac3-d418-497a-9959-4f2de116ad87</entry> <entry name='family'>Virtual Machine</entry> </system> </sysinfo> <os> <type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type> <boot dev='hd'/> <smbios mode='sysinfo'/> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-model'> <model fallback='allow'/> <topology sockets='1' cores='1' threads='1'/> </cpu> <clock offset='utc'> <timer name='pit' tickpolicy='delay'/> <timer name='rtc' tickpolicy='catchup'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source file='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/disk'/> <backingStore type='file' index='1'> <format type='raw'/> <source file='/var/lib/nova/instances/_base/3e67c6c692a9b432d2f74fc5bc7c22e35b7e1cfc'/> <backingStore/> </backingStore> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <controller type='usb' index='0'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <interface type='bridge'> <mac address='fa:16:3e:9a:3e:07'/> <source bridge='brqf28be70d-9a'/> <target dev='tap3a7df40b-a1'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='file'> <source path='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/console.log'/> <target port='0'/> <alias name='serial0'/> </serial> <serial type='pty'> <source path='/dev/pts/1'/> <target port='1'/> <alias name='serial1'/> </serial> <console type='file'> <source path='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/console.log'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <input type='tablet' bus='usb'> <alias name='input0'/> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'> <alias name='input1'/> </input> <input type='keyboard' bus='ps2'> <alias name='input2'/> </input> <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0' keymap='en-us'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <stats period='10'/> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices> <seclabel type='none' model='none'/> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+107:+107</label> <imagelabel>+107:+107</imagelabel> </seclabel> </domain> ``` 实例运行日志 ``` 2017-04-04 17:53:38.328+0000: starting up libvirt version: 2.0.0, package: 10.el7_3.5 (CentOS BuildSystem <http://bugs.centos.org>, 2017-03-03-02:09:45, c1bm.rdu2.centos.org), qemu version: 2.6.0 (qemu-kvm-ev-2.6.0-28.el7_3.6.1), hostname: openstack2 LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name guest=instance-00000006,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-3-instance-00000006/master-key.aes -machine pc-i440fx-rhel7.3.0,accel=kvm,usb=off -cpu Haswell-noTSX,+vme,+ds,+ss,+ht,+vmx,+osxsave,+f16c,+rdrand,+hypervisor,+arat,+tsc_adjust,+xsaveopt,+pdpe1gb,+abm -m 64 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid ae16fac3-d418-497a-9959-4f2de116ad87 -smbios 'type=1,manufacturer=RDO,product=OpenStack Compute,version=15.0.0-1.el7,serial=4dd6358f-1ebd-4634-9f0f-0d26d3dd4993,uuid=ae16fac3-d418-497a-9959-4f2de116ad87,family=Virtual Machine' -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-3-instance-00000006/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:9a:3e:07,bus=pci.0,addr=0x3 -add-fd set=2,fd=30 -chardev file,id=charserial0,path=/dev/fdset/2,append=on -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 0.0.0.0:0 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on char device redirected to /dev/pts/1 (label charserial1) warning: host doesn't support requested feature: CPUID.01H:EDX.ds [bit 21] warning: host doesn't support requested feature: CPUID.01H:EDX.ht [bit 28] warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5] warning: host doesn't support requested feature: CPUID.01H:ECX.osxsave [bit 27] warning: host doesn't support requested feature: CPUID.07H:EBX.erms [bit 9] warning: host doesn't support requested feature: CPUID.80000001H:EDX.pdpe1gb [bit 26] ```

本地搭建的openstack如何进行网络设置使虚拟机连接外网

本地利用workstation部署的单节点的openstack 分配了两个IP 一个是192.168.80网段的 一个是10.25.21网段的(PC端的网段) 请问如何配置外部网络可以使虚拟机实例连接外网?

openstack 云主机起不来。虚拟接口创建错误

这问题缠了我2天了,重做了好多次,刚开始以为是网络那里出错了。 可是再怎么细心还是出错,已经心灰意冷了。 我服务器当controller节点,自己的笔记本当compute节点,目前只是跟着文档 敲,然后从中出现的错误总结起来,然后解决。可这个问题具体是哪错,实在是不知道。虚拟接口创建失败。 求大神帮帮我。。。

openstack ssh登录远程实例

各位大神们,本人刚接触openstack,有好多问题还是不明白,请求各位大神们帮忙。在此谢谢各位了! 问题就是:现在有两台机器:ip分别为192.168.8.175、192.168.8.147,其中192.168.8.175是controller+compute节点,192.168.8.147是一个compute节点,分给虚拟机的ip网段是203.0.113.0/24.现在在这两个节点上都可以创建虚拟机,在dashboard也可以看到,也可以通过VNC控制台登录。但是在controller节点上通过ssh无法登录compute节点上虚拟机,但可以通过ssh登录controller节点上虚拟机,现在我想在controller节点上通过ssh登录compute节点上虚拟机该如何设置?从controller节点ssh登录compute上名为“compute_test_1”,ip为203.0.113.5的虚拟机,报错: ssh: connect to host 203.0.113.5 port 22: No route to host

无法连接keystone端点(m版openstack)

![图片说明](https://img-ask.csdn.net/upload/201612/05/1480941103_87306.png)

openstack-在centos7上源码安装ocata版,创建实例时,报401的错,求助!

环境:centos7 + ocata版本 + OpenPower 服务器 tail -f /var/log/nova/compute.log 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager [req-48ad4de2-cfb6-4166-94bb-cb5525ce6f76 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - - -] Instance failed network setup after 1 attempt(s): Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-f162b5bb-209d-4fa7-8c21-1f24c439ee11) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager Traceback (most recent call last): 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1403, in _allocate_network_async 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager bind_host_id=bind_host_id) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 873, in allocate_for_instance 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager bind_host_id, dhcp_options, available_macs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 992, in _update_ports_for_instance 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager vif.destroy() 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager self.force_reraise() 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager six.reraise(self.type_, self.value, self.tb) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 962, in _update_ports_for_instance 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager port_client, instance, port_id, port_req_body) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 427, in _update_port 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager port_response = port_client.update_port(port_id, port_req_body) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 780, in update_port 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.put(self.port_path % (port), body=body) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 370, in put 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager headers=headers, params=params) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 338, in retry_request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager headers=headers, params=params) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 289, in do_request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager resp, replybody = self.httpclient.do_request(action, method, body=body) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 314, in do_request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.request(url, method, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 302, in request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager resp = super(SessionClient, self).request(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 189, in request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.session.request(url, method, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 573, in request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager auth_headers = self.get_auth_headers(auth) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 900, in get_auth_headers

部署单节点openstack时,在生成密钥时报这个错误

![图片说明](https://img-ask.csdn.net/upload/201906/29/1561822999_156435.png) 请问安装部署单节点openstack时,在生成密钥时报这个错误 请问怎么解决?

使用REST API修改Openstack项目配额

<div class="post-text" itemprop="text"> <p>I am trying to add the limits for a newly created projet. I am using php for <a href="http://developer.openstack.org/api-ref-blockstorage-v2.html#os-limits-v2%22Openstack%20REST%20API%20V2%22" rel="nofollow noreferrer">Listing limits</a> of a given project. But I am not able to create limits for newly created project. I looked at this <a href="https://stackoverflow.com/questions/19396480/openstack-modify-all-projects-quotas%22Stack%20overflow%20question%22">Stakoverflow question</a>. Here they are mentioning to edit the nova.conf file for a project. But I do not have any idea how to create and assign new limits for a project.</p> <p>Also <a href="http://developer.openstack.org/api-ref-blockstorage-v2.html#os-quota-sets-v2%22here%22" rel="nofollow noreferrer">here</a> they are mentioning about quota for server. But I need managing quota for a project using openstck REST API.</p> <p>Please help.</p> <p>Thank you in advance.</p> </div>

fuel部署openstack遇到的问题

![图片说明](https://img-ask.csdn.net/upload/201509/06/1441501261_254723.png)大神帮们忙看下 这是什么问题,在 部署 openstack 是出现的!解决了好久都不知道问题在哪里?求解求解求解

openstack安装dashboard后访问horizon出错

如题,访问controller/horizon出错500:internal server error apache/error.log出错信息如下: [Sun Nov 27 03:35:40.350220 2016] [mpm_event:notice] [pid 3313:tid 140083000240000] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations [Sun Nov 27 03:35:40.350267 2016] [core:notice] [pid 3313:tid 140083000240000] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 27 03:43:46.458437 2016] [mpm_event:notice] [pid 3313:tid 140083000240000] AH00491: caught SIGTERM, shutting down [Sun Nov 27 05:05:03.495445 2016] [mpm_event:notice] [pid 3238:tid 139659907987328] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations [Sun Nov 27 05:05:03.555512 2016] [core:notice] [pid 3238:tid 139659907987328] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 27 05:56:53.084779 2016] [core:error] [pid 3255:tid 139659661248256] [client 192.168.157.1:6059] End of script output before headers: django.wsgi [Sun Nov 27 06:11:29.776677 2016] [mpm_event:notice] [pid 3238:tid 139659907987328] AH00493: SIGUSR1 received. Doing graceful restart [Sun Nov 27 06:11:40.334294 2016] [mpm_event:notice] [pid 3238:tid 139659907987328] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations [Sun Nov 27 06:11:40.334432 2016] [core:notice] [pid 3238:tid 139659907987328] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 27 06:17:21.963054 2016] [core:error] [pid 5214:tid 139659810662144] [client 192.168.157.1:6308] End of script output before headers: django.wsgi [Sun Nov 27 06:47:06.036727 2016] [mpm_event:notice] [pid 3238:tid 139659907987328] AH00493: SIGUSR1 received. Doing graceful restart [Sun Nov 27 06:47:11.888344 2016] [mpm_event:notice] [pid 3238:tid 139659907987328] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations [Sun Nov 27 06:47:11.888397 2016] [core:notice] [pid 3238:tid 139659907987328] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 27 06:47:39.162800 2016] [mpm_event:notice] [pid 3238:tid 139659907987328] AH00493: SIGUSR1 received. Doing graceful restart [Sun Nov 27 06:47:42.577268 2016] [core:error] [pid 5842:tid 139659703211776] [client 192.168.157.1:7524] End of script output before headers: django.wsgi [Sun Nov 27 06:47:42.636704 2016] [mpm_event:notice] [pid 3238:tid 139659907987328] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations [Sun Nov 27 06:47:42.636744 2016] [core:notice] [pid 3238:tid 139659907987328] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 27 06:53:07.710714 2016] [core:error] [pid 6066:tid 139659810662144] [client 192.168.157.1:7537] End of script output before headers: django.wsgi /etc/openstack-dashboard/local_settings.py部分如下:(按照官网配置) import os from django.utils.translation import ugettext_lazy as _ from horizon.utils import secret_key from openstack_dashboard import exceptions from openstack_dashboard.settings import HORIZON_CONFIG DEBUG = False TEMPLATE_DEBUG = DEBUG WEBROOT = '/' OPENSTACK_API_VERSIONS = { "identity": 3, "image": 2, "volume": 2, } OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default" LOCAL_PATH = os.path.dirname(os.path.abspath(__file__)) SECRET_KEY = secret_key.generate_or_read_from_file('/var/lib/openstack-dashboard/secret_key') SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '192.168.157.11:11211', } } EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' OPENSTACK_HOST = "controller" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user" IMAGE_RESERVED_CUSTOM_PROPERTIES = [] API_RESULT_LIMIT = 1000 API_RESULT_PAGE_SIZE = 20 SWIFT_FILE_TRANSFER_CHUNK_SIZE = 512 * 1024 DROPDOWN_MAX_ITEMS = 30 TIME_ZONE = "UTC" ALLOWED_HOSTS = ['*', ]

openstack中如何查询虚拟机所在的计算节点?

请问openstack中如何查询虚拟机所在的计算节点? nova命令中貌似没有这个参数 还是要使用nova api ?

安装OpenStack,服务器硬盘容量规划问题

关于OpenStack安装有一些问题: 1. 部署OpenStack,1 x Block Storage Node(Cinder)和 2 x Object Storage Node(Swift)是必须的吗? 1. 我看官方文档说这些Node是optional的,那么如果不提供这两个node,那么Cinder和Swift是安装在Controller Node中的吗?还是说压根就没有它们了?那么OpenStack是用什么东西替代它们呢? 1. Block Storage Node对物理设备有什么特别要求? 1. Object Storage Node对物理设备有什么特别要求? 1. 如果部署了Block Storage Node和Object Storage Node,那么应该怎样规划Controller Node和Computer Node的硬盘容量? 1. 如果没有Block Storage Node和Object Storage Node,那么应该怎样规划Controller Node和Computer Node的硬盘容量? 1. 欢迎分享一些你们遇到过的坑。

openstack keystone 部署完成验证出错

![图片说明](https://img-ask.csdn.net/upload/201605/04/1462351128_653357.png)

openstack启动实例报错No valid host was found

计算节点的nova错误日志: ``` 2020-02-11 17:05:07.817 1295 ERROR nova.virt.libvirt.guest [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] Error launching a defined domain with XML: <domain type='kvm'> 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Instance failed to spawn 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Traceback (most recent call last): 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2229, in _build_resources 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] yield resources 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2075, in _build_and_run_instance 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] block_device_info=block_device_info) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2779, in spawn 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] block_device_info=block_device_info) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4923, in _create_domain_and_network 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] xml, pause=pause, power_on=power_on) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4854, in _create_domain 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] guest.launch(pause=pause) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 142, in launch 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] self._encoded_xml, errors='ignore') 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] self.force_reraise() 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] six.reraise(self.type_, self.value, self.tb) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 137, in launch 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] return self._domain.createWithFlags(flags) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] result = proxy_call(self._autowrap, f, *args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] rv = execute(f, *args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] six.reraise(c, e, tb) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] rv = meth(*args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1110, in createWithFlags 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] libvirtError: internal error: process exited while connecting to monitor: 2020-02-11T09:05:07.623239Z qemu-kvm: -drive file=/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk': Permission denied 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] ``` 控制节点的nova-conductor.log ``` 2020-02-11 17:05:08.365 958 ERROR nova.scheduler.utils [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Error from last host: compute (node compute): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1937, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2127, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance 8020d30b-33ec-4836-8f61-f23516aa2508 was re-scheduled: internal error: process exited while connecting to monitor: 2020-02-11T09:05:07.623239Z qemu-kvm: -drive file=/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk': Permission denied\n"] 2020-02-11 17:05:08.450 958 WARNING nova.scheduler.utils [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Setting instance to ERROR state. ``` dashboard上报错 ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412785_788625.png) ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581413291_261638.png) 我的网络配置是 ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412842_430142.png) ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412854_59896.png) 不知道有没有路过的大师指导这是什么原因啊,在网上找了好多方法没有解决。万分感谢!

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

C++11:一些微小的变化(新的数据类型、template表达式内的空格、nullptr、std::nullptr_t)

本文介绍一些C++的两个新特性,它们虽然微小,但对你的编程十分重要 一、Template表达式内的空格 C++11标准之前建议在“在两个template表达式的闭符之间放一个空格”的要求已经过时了 例如: vector&lt;list&lt;int&gt; &gt;; //C++11之前 vector&lt;list&lt;int&gt;&gt;; //C++11 二、nullptr ...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

【阿里P6面经】二本,curd两年,疯狂复习,拿下阿里offer

二本的读者,在老东家不断学习,最后逆袭

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

微软为一人收购一公司?破解索尼程序、写黑客小说,看他彪悍的程序人生!...

作者 | 伍杏玲出品 | CSDN(ID:CSDNnews)格子衬衫、常掉发、双肩包、修电脑、加班多……这些似乎成了大众给程序员的固定标签。近几年流行的“跨界风”开始刷新人们对程序员的...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

我说我懂多线程,面试官立马给我发了offer

不小心拿了几个offer,有点烦

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

立即提问
相关内容推荐