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

安装的是ocata版,完全按照官网教程安装,能成功创建实例,但是实例启动一直卡在首屏。使用的是cirros镜像,使用其他镜像也是这个样子。新手一枚,求大神指点。

实例创建成功
实例运行界面

实例配置

 <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]

2个回答

遇到同样的问题,解决了吗?

rocketboyf
rocketboyf 没有,都没什么人回复
2 年多之前 回复

试一下把type='kvm'修改为qemu

lx521pop
ho0otboy 回复zyl63633223: 嗯,是这个问题,把虚拟化改成kvm
大约 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
实例创建成功,但是无法启动,看日志也没有报错
安装的是ocata版,完全按照官网教程安装,能成功创建实例,但是实例启动一直卡在首屏。使用的是cirros镜像,使用其他镜像也是这个样子。新手一枚,求大神指点。rnrn具体见下面这个帖子,论坛这里图片上传不了。rn[url=http://ask.csdn.net/questions/376326][/url]rn
openstack 创建实例, 无法启动boot
实例的信息rnrnProperty | Value |rn+-------------------------------------+----------------------------------------------------------+rn| OS-DCF:diskConfig | MANUAL |rn| OS-EXT-AZ:availability_zone | nova |rn| OS-EXT-SRV-ATTR:host | compute |rn| OS-EXT-SRV-ATTR:hypervisor_hostname | compute |rn| OS-EXT-SRV-ATTR:instance_name | instance-0000000d |rn| OS-EXT-STS:power_state | 1 |rn| OS-EXT-STS:task_state | - |rn| OS-EXT-STS:vm_state | active |rn| accessIPv4 | |rn| accessIPv6 | |rn| config_drive | |rn| created | 2014-11-19T15:42:46Z |rn| demoNet network | 10.0.1.3 |rn| flavor | m1.tiny (1) |rn| hostId | 6ea25a07f1d987654554df515543425e2a67c4b4dfe5901ef209a85e |rn| id | d45b19d2-23dc-424c-9c13-88f4a6de329a |rn| image | CirrOS 0.3.1 (68757124-05b0-4305-a757-8f90f83dbd76) |rn| key_name | demo-key |rn| metadata | |rn| name | 44444444444 |rn| progress | 0 |rn| security_groups | default |rn| status | ACTIVE |rn| tenant_id | fb7855ffd9684f5a955ee334c24ec7f8 |rn| updated | 2014-11-19T15:42:53Z |rn| user_id | 919eb452b0bd43608b8bd8a03b18de22 |rn+-------------------------------------+----------------------------------------------------------+
openstack创建实例无法启动操作系统??
openstack创建实例无法启动操作系统,出现如下界面, 初学者求助!!rn[img=https://img-bbs.csdn.net/upload/201701/17/1484636722_345882.png][/img]
左看右看也没有问题,但是总报错
rnrn rn rn rn rn rn
openstack创建实例计算节点报错
openstack创建实例计算节点报错,compute的nova-compute.log如下 403 Forbidden, You don't have permission to access /resource_providers on this server Failed to retrieve resource provider tree from placement API for U...
网站创建成功,但是打开时报错?
错误 rn发生意外错误。 rnrnMicrosoft SharePoint Foundation 疑难解答。 rnrn互联 ID: 756295bd-8adf-49e0-bf8d-22005f374b7e rnrn日期和时间: 2012/4/16 14:36:25 rnrnrn有人遇到过这种问题吗?谢谢
openstack实例创建问题
openstack在创建实例的时候,如果指定的硬盘大小,比单个节点硬盘剩余的大小还大,会不会使用另外节点的磁盘空间。rn同理,分配的内存比单个节点的内存还要大,那么实例会不会使用其他节点的磁盘空间?
简单使用openstack创建实例
简单使用openstack创建实例,详细的图文解析如何创建openstack实例
OpenStack实例创建失败
问题一:Block Device Mappingis Invalid 使用DashBoard创建实例时,卷是创建成功了,但是实例却处于ERROR状态 解决方案 查看日志/opt/stack/logs/c-vol.log ProcessExecutionError: Unexpected error while running command. Command: tgtad
Openstack创建实例失败
部署方法:安装官网和陈沙克日志部署http://www.chenshake.com/kolla-installation/rn部署环境:虚拟机+all-in-onern错误提示:Web中创建虚机,提示No valid host was found. There are not enough hosts available.rnrnnova_comput.logrnrn2017-10-25 16:27:04.590 5 DEBUG oslo_messaging._drivers.amqpdriver [req-40ef1384-a65d-45c2-ba3a-8691b5fb04c2 37ff328dfb87480dbbc51ed0b8e88638 2779da54e257448cacccc7dea61ad2a8 - - -] CALL msg_id: fd4f6ddeb7e84d11981c78bc2ef75e81 exchange 'nova' topic 'conductor' _send /var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:562rn2017-10-25 16:27:04.740 5 DEBUG oslo_messaging._drivers.amqpdriver [-] received reply msg_id: fd4f6ddeb7e84d11981c78bc2ef75e81 __call__ /var/lib/kolla/venv/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:419rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [req-40ef1384-a65d-45c2-ba3a-8691b5fb04c2 37ff328dfb87480dbbc51ed0b8e88638 2779da54e257448cacccc7dea61ad2a8 - - -] [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb] Instance failed to spawnrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb] Traceback (most recent call last):rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 2125, in _build_resourcesrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     yield resourcesrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 1931, in _build_and_run_instancern2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     block_device_info=block_device_info)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2738, in spawnrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     destroy_disks_on_failure=True)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5182, in _create_domain_and_networkrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     destroy_disks_on_failure)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     self.force_reraise()rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraisern2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     six.reraise(self.type_, self.value, self.tb)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5154, in _create_domain_and_networkrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     post_xml_callback=post_xml_callback)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5072, in _create_domainrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     guest.launch(pause=pause)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 145, in launchrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     self._encoded_xml, errors='ignore')rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     self.force_reraise()rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraisern2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     six.reraise(self.type_, self.value, self.tb)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 140, in launchrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     return self._domain.createWithFlags(flags)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doitrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     result = proxy_call(self._autowrap, f, *args, **kwargs)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_callrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     rv = execute(f, *args, **kwargs)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in executern2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     six.reraise(c, e, tb)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/var/lib/kolla/venv/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworkerrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     rv = meth(*args, **kwargs)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1069, in createWithFlagsrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb]     if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)rn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb] libvirtError: internal error: process exited while connecting to monitor: 2017-10-25T08:27:04.294104Z qemu-kvm: -chardev pty,id=charserial0,logfile=/var/lib/nova/instances/fe80ac89-cf63-43cc-a7ef-2091ae0464fb/console.log,logappend=off: Unable to open logfile /var/lib/nova/instances/fe80ac89-cf63-43cc-a7ef-2091ae0464fb/console.log: Permission deniedrn2017-10-25 16:27:04.750 5 ERROR nova.compute.manager [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb] rn2017-10-25 16:27:04.774 5 INFO nova.compute.manager [req-40ef1384-a65d-45c2-ba3a-8691b5fb04c2 37ff328dfb87480dbbc51ed0b8e88638 2779da54e257448cacccc7dea61ad2a8 - - -] [instance: fe80ac89-cf63-43cc-a7ef-2091ae0464fb] Terminating instance
openstack创建实例
一、horizon创建vm 参考:《Openstack创建实例–horizon篇》 https://blog.csdn.net/yasyal515/article/details/74946977 遇到的问题: openstack报错:Host xxx is not mapped to any cell 解决: 控制节点以stack用户执行如下命令: stack@kvm-01910...
MySQL 成功安装,但是无法启动
[img=https://img-bbs.csdn.net/upload/201605/13/1463122440_444465.png][/img][img=https://img-bbs.csdn.net/upload/201605/13/1463122449_403450.png][/img][img=https://img-bbs.csdn.net/upload/201605/13/1463122659_955072.png][/img]请问如何解决?真心不懂.谢谢
Apache 无法启动查看报错日志
一 首先找到apache文件 在cmd 当中 启动 E:\PHPstydy\PHPTutorial\Apache\bin   然后运行 httpd.exe -t 我这里显示的是 在httpd.conf中有多余的&amp;lt;/ifModule&amp;gt; 删除后运行正常...
在Glusterfs卷上创建Openstack实例,创建时报错
我在两台机器上安装了gluster并且创建了striped形式的卷,在Openstack节点上安装了gluster客户端,将gluster卷挂载到了 /var/lib/nova/instances openstack的实例目录,这是新建实例的话状态总是error,查看日志报错如下:rnrnrnIOError: [Errno 2] No such file or directory: '/var/lib/nova/instances/instance-00000011/libvirt.xml'rnrn有人这样弄过吗,遇到过这个问题吗,求帮助rn
hadoop 2.6 安装 ScondaryNameNode 无法启动,也没有报错!!
大神,我现在装Hadoop2.6.0,ScondaryNameNode一直起不来,日志也没有Scondary的,启动也没报错,好就纠结。然后我新建文件夹和导入文件都没有问题,不知道什么原因Scondary就是不能启动,哭,大神救命。rn启动后进程:rn17048 NameNodern16661 ResourceManagerrn这个是配置:rn rn dfs.namenode.secondary.http-addressrn master:50090rn rnrn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img]
OpenStack创建VM的时候报错
报错信息如下:rn[color=#FF0000]Instance building... 0% completernError building instance[/color]rnrn操作步骤如下:rnrnroot@king:~# nova listroot@king:~# [b]nova-manage service list[/b]rnBinary Host Zone Status State Updated_Atrnnova-consoleauth king nova enabled :-) 2013-01-15 02:04:38rnnova-console king nova enabled :-) 2013-01-15 02:04:38rnnova-scheduler king nova enabled :-) 2013-01-15 02:04:37rnnova-compute king nova enabled :-) 2013-01-15 02:04:41rnnova-volume king nova enabled :-) 2013-01-15 02:04:38rnnova-network king nova enabled :-) 2013-01-15 02:04:38rnrnroot@king:~# [b]nova list[/b]rn+----+------+--------+----------+rn| ID | Name | Status | Networks |rn+----+------+--------+----------+rn+----+------+--------+----------+rnroot@king:~# [b]nova image-list[/b]rn+--------------------------------------+-----------------------------+--------+--------+rn| ID | Name | Status | Server |rn+--------------------------------------+-----------------------------+--------+--------+rn| 41a15b7d-d4c6-434f-9fd7-54da57618f1a | Ubuntu12.04-amd64-test | ACTIVE | |rn| 80ab3716-d264-478b-86fe-65fee000a732 | Ubuntu 12.04 cloudimg amd64 | ACTIVE | |rn| abe2431b-0a18-446b-b1e3-d570e0d27dbc | Ubuntu 11.10 cloudimg amd64 | ACTIVE | |rn| c19cf1a1-8b1d-41a2-b8d7-3d470308a30f | cirrOS-0.3.0-x86_64 | ACTIVE | |rn+--------------------------------------+-----------------------------+--------+--------+rnroot@king:~# [b]nova flavor-list[/b]rn+----+-------------+-----------+------+-----------+------+-------+-------------+rn| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor |rn+----+-------------+-----------+------+-----------+------+-------+-------------+rn| 1 | m1.tiny | 512 | 0 | 0 | | 1 | 1.0 |rn| 2 | m1.small | 2048 | 10 | 20 | | 1 | 1.0 |rn| 3 | m1.medium | 4096 | 10 | 40 | | 2 | 1.0 |rn| 4 | m1.large | 8192 | 10 | 80 | | 4 | 1.0 |rn| 5 | m1.xlarge | 16384 | 10 | 160 | | 8 | 1.0 |rn| 6 | m1.minitest | 384 | 1 | 1 | | 1 | 1.0 |rn+----+-------------+-----------+------+-----------+------+-------+-------------+rnroot@king:~# [b]nova keypair-list[/b]rn+------+-------------------------------------------------+rn| Name | Fingerprint |rn+------+-------------------------------------------------+rn| key1 | cd:50:6c:5c:37:5a:94:00:2c:b6:a4:7d:3b:56:89:18 |rn| key5 | 72:c5:20:80:9d:72:e4:25:49:e3:ca:83:f7:c9:45:08 |rn+------+-------------------------------------------------+rnrn[b]前面一切都正常,但是创建虚拟机时报错,信息如下[/b]rnroot@king:~# nova boot --poll --flavor 2 --image 41a15b7d-d4c6-434f-9fd7-54da57618f1a --key_name key1 test2rn+-------------------------------------+--------------------------------------+rn| Property | Value |rn+-------------------------------------+--------------------------------------+rn| OS-DCF:diskConfig | MANUAL |rn| OS-EXT-SRV-ATTR:host | king |rn| OS-EXT-SRV-ATTR:hypervisor_hostname | None |rn| OS-EXT-SRV-ATTR:instance_name | instance-00000005 |rn| OS-EXT-STS:power_state | 0 |rn| OS-EXT-STS:task_state | scheduling |rn| OS-EXT-STS:vm_state | building |rn| accessIPv4 | |rn| accessIPv6 | |rn| adminPass | LeY9Cg8P3wic |rn| config_drive | |rn| created | 2013-01-15T02:21:29Z |rn| flavor | m1.small |rn| hostId | |rn| id | 4c7cd69d-27f1-4ac6-9655-67e391ef1847 |rn| image | Ubuntu12.04-amd64-test |rn| key_name | key1 |rn| metadata | |rn| name | test2 |rn| progress | 0 |rn| status | BUILD |rn| tenant_id | c8e59a4ee56e49119eee943a1e91a983 |rn| updated | 2013-01-15T02:21:29Z |rn| user_id | 26bb0e34e8154a77a354744b77e7fc2b |rn+-------------------------------------+--------------------------------------+rnrn[b][color=#FF0000]Instance building... 0% completernError building instance[/color][/b]rnroot@king:~#
openstack安装RabbitMQ报错,无法启动Rabbit
在安装openstack,遇到RabbitMQ问题,Failed to start RabbitMQ broker 折腾了好久。
Openstack创建实例--CLI篇
1、首先source环境变量 每次登陆节点需要操作openstack命令时,都需要source一次环境变量,这样才可以正确的访问相应的用户信息。 [root@cloud ~]#source openrc.sh  2、生成密钥对 [root@cloud ~]#openstack keypair create --public-key ~/.ssh/id_rsa.pub defau
openstack创建实例无密码登录详解
[root@openstack ~]# ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Y...
OpenStack之日志
OpenStack日志日志对于一个稳定的系统来说相当重要,对于OpenStack这样一个大型的系统,日志当然也是必不可少,理解Openstack系统的日志对于保证OpenStack环境稳定非常重要。对于出现系统错误,查看日志是一个很好的习惯。OpenStack通过生成大量日志信息来帮助排查系统安装运行期间出现的问题,接下来介绍几个常见服务的相关日志位置。Nova日志OpenStack计算服务日志位于
openstack 查看实例、创建、删除 、重启实例
列出实例,查看实例状态 命令: $ openstack server list 从镜像创建实例 命令: $ openstack server create --image &lt;镜像id&gt; --flavor &lt;云主机类型&gt;. --network &lt;内网id&gt; &lt;实例名&gt; 从云硬盘创建实例 命令: $ openstack server create ...
laravel文件上传成功但是报错
![代码](https://img-ask.csdn.net/upload/201706/13/1497345611_953161.png)![报错说明](https://img-ask.csdn.net/upload/201706/13/1497345638_360353.png)nn很奇怪的是文件上传成功了...
创建openstack实例时未成功,nova-computer日志如下,求大家帮助
2016-03-25 22:21:31 INFO nova.virt.libvirt.connection [-] Compute_service record updated for node1 rn2016-03-25 22:21:31 AUDIT nova.compute.manager [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] Starting instance...rn2016-03-25 22:21:31 INFO nova.compute.manager [-] Updating host statusrn2016-03-25 22:21:33 INFO nova.virt.libvirt.firewall [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] Called setup_basic_filtering in nwfilterrn2016-03-25 22:21:33 INFO nova.virt.libvirt.firewall [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] Ensuring static filtersrn2016-03-25 22:21:33 INFO nova.virt.firewall [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] Using cidr u'0.0.0.0/0'rn2016-03-25 22:21:33 INFO nova.virt.firewall [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] Using fw_rules: ['-m state --state INVALID -j DROP', '-m state --state ESTABLISHED,RELATED -j ACCEPT', '-j $provider', u'-s 10.0.0.3 -p udp --sport 67 --dport 68 -j ACCEPT', u'-s 10.0.0.0/24 -j ACCEPT', u'-j ACCEPT -p tcp --dport 22 -s 0.0.0.0/0']rn2016-03-25 22:21:33 INFO nova.virt.firewall [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] Using cidr u'0.0.0.0/0'rn2016-03-25 22:21:33 INFO nova.virt.firewall [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] Using fw_rules: ['-m state --state INVALID -j DROP', '-m state --state ESTABLISHED,RELATED -j ACCEPT', '-j $provider', u'-s 10.0.0.3 -p udp --sport 67 --dport 68 -j ACCEPT', u'-s 10.0.0.0/24 -j ACCEPT', u'-j ACCEPT -p tcp --dport 22 -s 0.0.0.0/0', u'-j ACCEPT -p icmp -s 0.0.0.0/0']rn2016-03-25 22:21:34 INFO nova.virt.libvirt.connection [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] Creating imagern2016-03-25 22:21:37 ERROR nova.compute.manager [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] Instance failed to spawnrn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] Traceback (most recent call last):rn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 617, in _spawnrn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] self._legacy_nw_info(network_info), block_device_info)rn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrappedrn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] return f(*args, **kw)rn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 965, in spawnrn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] self._create_new_domain(xml)rn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1648, in _create_new_domainrn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] domain.createWithFlags(launch_flags)rn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] File "/usr/lib/python2.7/dist-packages/libvirt.py", line 581, in createWithFlagsrn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)rn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] libvirtError: Unable to read from monitor: Connection reset by peerrn2016-03-25 22:21:37 TRACE nova.compute.manager [instance: fe67ad45-d910-4cb6-a25b-8b7fc07f352b] rn2016-03-25 22:21:37 ERROR nova.rpc.amqp [req-2e8d0375-2e8c-43b2-abdf-d94672b9a28e f06536eca9be45419c51ee03da3cd5c5 cb8baad3d2d8485cb9cc5570ef40eda3] Exception during message handlingrn2016-03-25 22:21:37 TRACE nova.rpc.amqp Traceback (most recent call last):rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_datarn2016-03-25 22:21:37 TRACE nova.rpc.amqp rval = node_func(context=ctxt, **node_args)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrappedrn2016-03-25 22:21:37 TRACE nova.rpc.amqp return f(*args, **kw)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 183, in decorated_functionrn2016-03-25 22:21:37 TRACE nova.rpc.amqp sys.exc_info())rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__rn2016-03-25 22:21:37 TRACE nova.rpc.amqp self.gen.next()rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_functionrn2016-03-25 22:21:37 TRACE nova.rpc.amqp return function(self, context, instance_uuid, *args, **kwargs)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 676, in run_instancern2016-03-25 22:21:37 TRACE nova.rpc.amqp do_run_instance()rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 990, in innerrn2016-03-25 22:21:37 TRACE nova.rpc.amqp retval = f(*args, **kwargs)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 675, in do_run_instancern2016-03-25 22:21:37 TRACE nova.rpc.amqp self._run_instance(context, instance_uuid, **kwargs)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 476, in _run_instancern2016-03-25 22:21:37 TRACE nova.rpc.amqp self._set_instance_error_state(context, instance_uuid)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__rn2016-03-25 22:21:37 TRACE nova.rpc.amqp self.gen.next()rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 457, in _run_instancern2016-03-25 22:21:37 TRACE nova.rpc.amqp self._deallocate_network(context, instance)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__rn2016-03-25 22:21:37 TRACE nova.rpc.amqp self.gen.next()rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 454, in _run_instancern2016-03-25 22:21:37 TRACE nova.rpc.amqp injected_files, admin_password)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 617, in _spawnrn2016-03-25 22:21:37 TRACE nova.rpc.amqp self._legacy_nw_info(network_info), block_device_info)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrappedrn2016-03-25 22:21:37 TRACE nova.rpc.amqp return f(*args, **kw)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 965, in spawnrn2016-03-25 22:21:37 TRACE nova.rpc.amqp self._create_new_domain(xml)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 1648, in _create_new_domainrn2016-03-25 22:21:37 TRACE nova.rpc.amqp domain.createWithFlags(launch_flags)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/libvirt.py", line 581, in createWithFlagsrn2016-03-25 22:21:37 TRACE nova.rpc.amqp if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)rn2016-03-25 22:21:37 TRACE nova.rpc.amqp libvirtError: Unable to read from monitor: Connection reset by peerrn2016-03-25 22:21:37 TRACE nova.rpc.amqp rn
openstack cinder-volume 无法启动
在装完cinder各项服务以后并且配置完以后rn[b][color=#FF0000] service cinder-volume restart[/color][/b] rn报[b][color=#FF0000] stop:unknow iinstance;[/color]rn[/b]rn然后日志里面写 rn[color=#FF0000][b]VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: volume group cinder-volumes doesn't exist[/b][/color]rnrn官方文档里面写 rn[b][color=#FF0000]In this example, cinder-volumes failed to start and has provided a stack trace, since its volume back end has been unable to set up the storage volume—probably because the LVM volume that is expected from the configuration does not exist.[/color][/b]rnrn我是在VM虚拟机中的ubuntu12.04上部署的。其他服务都正常。创建实例的时候,实例状态会错误。并且不能查看日志。我想应该就是volume的问题,求大神解决,谢谢。
openstack的第二块网卡无法启动
在用openstack里面创建第二块网卡的时候总是无法,自动启动,rnrn镜像使用的是centos。rnrn有大牛知道这是什么原因么?谢谢了哈!
jboss无法启动,无日志,不报错
我点击run.bat后,只闪了下就关闭了,再无任何反应,无日志,不报错,环境信息都配了,昨天电脑刚搬回公司,之前都是可以用的,就是加了个域后,换我自己的登录名之后就这样了,求教~~
ajax请求成功,服务器响应成功,但是前台接受不到数据,控制台也没有报错
状态ok 代码200 但是前端没有返回数据,控制台也没有报错。逐行核对代码发现是因为“readyState”中的s没有大写导致的。 修改完成后代码可以正常运行,前端正确异步更新数据。 ...
python日志模块---怎么创建日志实例
用日志代替print  Logging 模块有很多优势,包括: 多线程支持 通过不同级别的日志分类 灵活性和可配置性 将如何记录日志与记录什么内容分离 #日志 import logging,sys #开发环境中应该使用同一的日志。 #创建日志实例 logger = logging.getLogger(&quot;testLogger&quot;) #定制logger的输出格式 formatter ...
OpenStack keystone创建租户的时候报错
root@ubuntu:~# keystone tenant-create --name adminrnUnable to establish connection to http://192.168.63.128:35357/v2.0/tenantsrnrn想请教这个问题出在哪里?
usebean 未能成功创建实例
错误提示:rnAn error occurred at line: 99 in the jsp file: /pro_web/products.jsprn[color=#FF0000]The method sqlemconn(Connection) is undefined for the type products_jsp[/color]rn96: <% rn97: ResultSet rs=null;rn98: int rowCount=0;rn99: Statement sql=sqlemconn(con);rn100: //返回可滚动的结果集:rn101: rs=sql.executeQuery("SELECT * FROM product");rnrnAn error occurred at line: 128 in the jsp file: /pro_web/products.jsprn[color=#FF0000]handlePage cannot be resolved[/color]rn125: if(con!=null)rn126: rn127: if(s.equals("next"))rn128: int n=handlePage.getShowPage(); //获取目前的页数。rn129: n=(n+1); //将页数增1。rn==================================================================rn代码如下:rnrn<%@ page import="javax.servlet.*,javax.servlet.http.*"%>rn<%@ page import="java.io.*"%>rn<%@ page import="java.sql.*" %>rn<%@ page import="java.util.*"%> rn<%@ page import="java.text.*"%> rn[color=#FF0000]<%@ page import="dorado.showbypage" %>rn<%@ page import="dorado.sqlconn" %>[/color]rnrnrnrn[color=#FF0000]rnrnrn[/color]rnrn……rn………………rn…………rn<% rn ResultSet rs=null;rn int rowCount=0;rn [color=#FF0000]Statement sql=sqlemconn(con);[/color] //返回可滚动的结果集:rn rs=sql.executeQuery("SELECT * FROM product");rn //将游标移动到最后一行:rn rs.last();rn //获取最后一行的行号:rn int number=rs.getRow();rn………………rn…………rn%>rn<% //获取表单提交的信息:rn…………rn……rn int n=[color=#FF0000]handlePage.getShowPage(); [/color]//获取目前的页数。rn n=(n+1); //将页数增1。rn if(n>handlePage.getPageCount())rn n=handlePage.getPageCount();rn rn handlePage.setShowPage(n); //显示该页rn…………rn……rn%>rnrnrnrn=======================================================rn类如下:rn[color=#FF0000]public class sqlconn[/color]rnrn public Statement sqlconn(Connection con)rnrn Statement sql=null; rnrn //第一个客户负责建立连接对象:rn if(con==null)rn tryrn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn…………rn……rnrn类如下:rn[color=#FF0000]public class showbypage[/color] rn rn int rowCount=1, //总的记录数。rn……rn…………rnrnrn=========================================rn[color=#808000]那么我既然已经用了bean,为什么页面运行却提示rnThe method sqlemconn(Connection) is undefined for the type products_jsprnhandlePage cannot be resolved[/color]rnrn
openstack——安装单机版openstack、配置网络、cinder、创建实例
参考:https://www.linuxtechi.com/single-node-openstack-liberty-installation-centos-7/ 步骤: 环境准备:centos7.4 注意:1、最好是新安装iso的环境            2、系统盘最好容量设大些(默认虚拟机的系统盘会放在/var/lib/nova/instances目录下,容量过小会导致虚拟机创建失...
openstack创建4 VCPU的实例问题
openstack创建windows server 2003系统4 VCPU的实例,为什么安装的硬件检测软件看见cpu是单核,单线程的呢?
深挖Openstack Nova - 实例创建(2)
--------------- 紧接上篇 nova实例创建(1) --------------------3. 分析show方法在2.1中的image = self.image_service.show(context, internal_id)中,由于S3是EC2的存储平台,所以调用/nova/image/s3.py的show方法def show(self, context, image_id)...
Openstack liberty 创建实例快照源码分析2
这是创建云主机实例快照源码分析系列的第二篇,在第一篇文章中分析了从镜像启动云主机,创建在线/离线快照的过程;本篇将分析从启动盘启动的云主机创建快照的过程,下面请看正文: 磁盘启动云主机,离线(在线)快照 函数入口和前述一样,还是 nova/api/openstack/compute/servers.py/ServersController._action_create_image,下面一
深挖Openstack Nova - 实例创建(4)
--------------- 紧接上篇 nova实例创建(3) --------------------(8)完成配额管理instances = self._provision_instances(context, instance_type, min_count, max_count, base_options, boot_meta, security_groups, ...
openstack创建实例失败,bug(1)解决办法
先说出我找见错误是在哪里,虽然是很小的失误,但还是得注意 1,一次不小心把控制节点的主机名给修改了,然后就导致keystone工作不正常,消息机制出现错误。把控制节点的主机名改回来到原来的主机名就可以了。 2,创建实例出现错误: 查看nova-compute.log 看到的是:Starting instan ce… 2017-05-16 15:10:55.461 3677 WARNI
解决OpenStack创建实例不超过10个
在使用openstack的过程中,默认创建的实例最多10个,这是因为配额默认实例就是10 所以我们需要修改配置文件/etc/nova/nova.conf中的配额参数就可以了 [default] 末尾添加 quota_instances=1000000 quota_cores=20000 quota_ram=5120000000 quota_floating_ips=100000
OpenStack创建实例控制台显示starting up...
问题简述今天刚刚配置好自己的OpenStack,然后跟着教程也是做到了创建实例,好不容易创建好了,用例子的cirros进入console,只有黑屏加上:starting up…,挂了一个小时还是这样,然后网上竟然完全查不到,后来终于查到了一个问这个问题的人。 Hi all, I installed openstack Newton on CentOS 7 the 2 node archit
深挖Openstack Nova - 实例创建(1)
nova版本:Liberty一、创建实例涉及的主要目录结构(1)/nova/api/ec2/cloud.py:云控制器,执行EC2 REST API的调用,这个调用是通过AMQP RPC分派到其他节点(2)/nova/image/s3.py:从S3获取数据,建立镜像等相关方法(3)/nova/image/glance.py:使用Glance作为后端的镜像服务的实现(4)/nova/compute/...
openstack创建的实例不能使用ssh登录
问题描述 openstack创造的实例不能被ssh登录。 分析了一下问题产生的原因是在创建实例的时候,ssh被openstack中的安全组给限制掉了,所有实例的22号端口都不能够被链接。 解决办法 打开openstack的dashboard面板,进行如下测试。 给安全组当中添加一条相关的规则即可。...
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview