-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


[ ] : Git Commit' OpenStack

, 01 2017 . 15:31 +

"" " OpenStack".


1 Git Commit


, , Git, libvirt, QEMU OpenStack Nova. , Kernel, CoreUtils, GNULIB , , . Git Nova. ; (Thing of Beauty) (Evil Hack). , , , , , Git OpenStack.


:





1.1


, , . , git' OpenStack. git'a. , , Gerrit . ;-P


, Gerrit, . . , . . , , .


, Gerrit . , . , , . , , , , , - , .


, .


1.2


. , :


  • , .
  • , , . , , .
  • , git bisect, , , .
  • git' git annotate git blame , .

1.2.1


, :


  • .

, . : 2 , , . , .


  • .

, . , .


  • .

, , . , , . . , , , . , . , . , , API , . , . git cherry-pick, . HTTP API RPC- , . API RPC, , . HTTP, APIImpact (. ).


:


, . - . .


1.2.2


Git Nova. : , , . . , , , , , ;


1.2.2.1 1


: ae878fc8b9761d099a4145617e4a48cbeb390623
: []
: . 1  01:44:02 2012 . +0000

   create libvirt

 *       create
 *   wait_for_destroy  
    undefine
 *       
 *  reset     create / destroy
 *  resume_host_state   
    hard_reboot
 *  rescue/unrescue    
     

Change-Id: I2072f93ad6c889d534b04009671147af653048e7

.


  1. reset API hard_reboot
  2. , "hard_reboot"

:


  • -, , ( ). hard_reboot. hard_reboot.
  • -, reset libvirt , , API libvirt. , - .

1.2.2.2 2


: e0540dfed1c1276106105aea8d5765356961ef3d
: []
: C. 16  15:17:53 2012 +0400

 lvm-disk-images

    LVM   VM.

  LVM    libvirt.

VM-     LVM   
   `libvirt_images_volume_group`.
   `libvirt_local_images_type` ,  
   .  : `raw`,
 `lvm`, `qcow2`, `default`.  `libvirt_local_images_type` =
 `default`,     `use_cow_images`.
  `libvirt_sparse_logical_volumes`  ,
       ( 
  virtualsize      
  ).     
  `False`.
    : `Raw`, `Qcow2`  `Lvm`.  
    ,    
  `LibvirtConnection._cache_image` ` libvirt_info`
      `LibvirtGuestConfigDisk`
  libvirt.  `Backend` ,    
 .

Change-id: I0d01cb7d2fd67de2565b8d45d34f7846ad4112c2

, , , , , LVM. QCow2 / Raw. , .


  • use_cow_images libvirt_local_images_type use_cow_images.
  • Image Raw & QCow2.
  • libvirt raw / qcow2, Image.
  • LVM.

1.2.3


1.2.3.1 1


: 3114a97ba188895daff4a3d337b2c73855d4632d
: []
: . 11  17:16:10 2012 +0100

     KVM  VM  PIT  RTC

: 573ada525b8a7384398a8d7d5f094f343555df56
: []
: . 1  17:09:32 2012 + 0100

      VM libvirt

KVM. API XML- libvirt KVM, API.


1.2.3.2 2


: 62bea64940cf629829e2945255cc34903f310115
: []
: . 1  14:49:42 2012 -0400

    rpc.queue_get_for().
Change-Id: Ifa7d648e9b33ad2416236dc6966527c257baaf88

: cf2b87347cd801112f89552a78efabb92a63bac6
: []
: . 30  14:57:03 2012 -0400

  shared_storage_test   rpcapi.
......
 get_instance_disk_info    rpcapi.
......
 remove_volume_connection    rpcapi.
......
 compare_cpu    rpcapi.
......
 get_console_topic()    rpcapi.
......
 refresh_provider_fw_rules()    rpcapi.
...    ...

API RPC OpenStack Compute (Nova), . , , , .


1.3


, . , :


  • , , .

, (bug report), . . , . , .


  • , - .

6 , - / / / / git'a, , - . (SCM) , , . , git'a.


  • , / .

, , . , , , .


  • , .

, , , . , .


  • , , .

, . .


  • .

Gerrit , , . , , . , , , , .


  • .

Git . , git annotate, gitk viewer, , . , , . , libvirt, libvirt - .


  • .

, . , , .


  • , .

, , , 2: (Patch set 2: rebased) . . Gerrit . , . , -, , .


:


, . - . .


1.3.1


, , . OpenStack' Change-Id ( ), bug, blueprint (/), DocImpact, APIImpact SecurityImpact.


  • Change-Id , , Git' (hook). rebase, Gerrit .
  • 'bug' . Gerrit review.openstack.org, Launchpad.
    • Closes-Bug: #1234567 Closes-Bug, .
    • Partial-Bug: #1234567 'Partial-Bug', .
    • Related-Bug: #1234567 'Related-Bug', .
  • 'blueprint' Launchpad blueprint ( Launchpad), . Gerrit blueprint review.openstack.org, Launchpad.
  • DocImpact DocImpact , . DocImpact . , , , , . . , Gerrit bug-report openstack-manuals ( openstack) , , openstack-api-site.
  • APIImpact APIImpact , HTTP API. APIImpact . , , , HTTP API API. . , , API_Working_Group . , API (API Working Group) IRC Freenode #openstack-sdks.
  • SecurityImpact SecurityImpact. , , OpenStack Security Group.
  • UpgradeImpact UpgradeImpact , . , , , (continuous deployment), N N + 1 . Upgrade Notes ( ) .

, , , .


: , Git Signed-off-by () ( git commit -s), OpenStack . Gerrit, OpenStack , CLA (Contributor License Agreement, ), .


Co-Authored-By: name name@example.com () , , . , .


1.3.2


  • .
  • .
  • , , .
  • 50 .
  • 72 .
    • vim ( $EDITOR ) . vimrc ( -, /usr/share/vim/vim74/vimrc_example.vim) ~/.vimrc, .
    • , escape, gqip.
  • Change-id, Closes-Bug #NNNNN blueprint NNNNNNNNNNNN .

:


  libvirt get_cpu_info    API

 get_cpu_info   libvirt    
 XPath     
XML .     
 LibvirtConfigCaps.     
  .

DocImpact
Closes-Bug: #1003373
Implements: blueprint libvirt-xml-cpu-model
Change-Id: I4946a16d27f712ae2adf8441ce78e6c0bb0bb657

1.3.3


Git Nova, , .


1.3.3.1 1


: 468e64d019f51d364afb30b0eed2ad09483e0b98
: []
: . 18  16:07:37 2012 -0400

    compute/utils.py

Fixes bug #1014829

: , , , . , . :


   "exception"  compute/utils.py

nova/compute/utils.py     
exception.NotFound,     .

1.3.3.2 2


: 2020fba6731634319a0d541168fbf45138825357
: []
: . 15  11:12:45 2012 -0600

   ec2id    

Fixes bug #1013765
*      ec2utils.id_to_ec2_id()

Change-Id: I5e574f8e60d091ef8862ad814e2c8ab993daa366

: , () , , . . , , , , . :


   ec2id    

   uuid' ,   
XXXXXXX,   ec2    
        
 (i-xxxxx).    
 vol-xxx  snap-xxxx.

     ec2utils.id_to_ec2_id ()

Fixes bug #1013765

1.3.3.3 3


: f28731c1941e57b776b519783b0337e52e1484ab
: []
: . 13  10:11:04 2012 -0400

    libvirt.

Fixes LP bug #1012689

Change-Id: I91c0b7c41804b2b25026cbe672b9210c305dc29b

: , , . , libvirt. , , .
:


   libvirt,  0.9.7

  XXXXXXXX   API  'reset'
    libvirt 0.9.7  . 
   libvirt  , 
   .    
,   .

Fixes LP bug #1012689

Change-Id: I91c0b7c41804b2b25026cbe672b9210c305dc29b

1.3.4


1.3.4.1 1


: 3114a97ba188895daff4a3d337b2c73855d4632d
: []
: . 17  17:16:10 2012 +0100

     KVM  VM  PIT  RTC

     PIT  RTC   
KVM     ()  
 .  ,  Windows 7
      KVM  ,  
 Linux      .

 PIT ,      
 , ..  

 RTC  ,     
  ,    ''

   libvirt XML


  
  


  KVM  

  -no-kvm-pit-reinjection
  -rtc base=utc,driftfix=slew

    ,  
    .    
        

Closes-Bug: #1011848

Change-Id: Iafb0e2192b5f3c05b6395ffdfa14f86a98ce3d1f

, :


  • , ( KVM )
  • ( PIT / RTC)
  • ( XML / QEMU args)
  • ( )
  • Closes-Bug

1.3.4.2 2


: 31336b35b4604f70150d0073d77dbf63b9bf7598
: []
: . 06  22:45:25 2012 -0400

     CPU

  ,     
,      ARM   
X86_64  .

      
 ,     .

 libvirt   
       
permitted_instances_types   cpu_info .

 Xen     .

      
 permitted_instances_types   
 .

  ARM     .

  ArchFilter  .

Change-Id: I17bd103f00c25d6006a421252c9c8dcfd2d2c49b

, :


  • , ( )
  • ( )
  • ( libvirt )
  • (, Xen)
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/329992/

:  

: [1] []
 

:
: 

: ( )

:

  URL