Skip to content

various encloud related backports for SOC7#1634

Merged
rsalevsky merged 6 commits into
crowbar:stable/4.0from
dirkmueller:stable/4.0
May 7, 2018
Merged

various encloud related backports for SOC7#1634
rsalevsky merged 6 commits into
crowbar:stable/4.0from
dirkmueller:stable/4.0

Conversation

@dirkmueller

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread chef/cookbooks/nova/recipes/config.rb Outdated
cpu_mode = compute_flags["cpu_mode"]
end

if File.exists?("/sys/devices/virtual/misc/hw_random/rng_current") &&

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint/DeprecatedClassMethods: File.exists? is deprecated in favor of File.exist?.

end

def downgrade(ta, td, a, d)
unless ta["kvm"].key? "disk_cachemodes"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/IfUnlessModifier: Favor modifier unless usage when having a single-line body. Another good alternative is the usage of control flow &&/||. (https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier)

return a, d
end

def downgrade(ta, td, a, d)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming/UncommunicativeMethodParamName: Method parameter must be at least 3 characters long.

@@ -0,0 +1,13 @@
def upgrade(ta, td, a, d)
unless a["kvm"].key? "disk_cachemodes"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/IfUnlessModifier: Favor modifier unless usage when having a single-line body. Another good alternative is the usage of control flow &&/||. (https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier)

@@ -0,0 +1,13 @@
def upgrade(ta, td, a, d)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming/UncommunicativeMethodParamName: Method parameter must be at least 3 characters long.

dirkmueller and others added 6 commits April 27, 2018 11:29
This allows the administrator to select flavors or images
to pass through entropy devices to the guest to give them
a chance of securely generating crypto nounces. Note
the default seems to be off, it needs to be enabled in the
nova flavor via an "hw_rng:allowed=True" extra specs

(cherry picked from commit 31e29a5)
Installation order isn't properly defined, so we don't want
apache2 to restart in the middle of while we're still updating
. Chef will trigger a restart when we're ready

(cherry picked from commit 7c4e111)
This seems to be the upstream default, and more than one
thread seems to act really weirdly (slow) when using the LDAP
backend (causing random multi second hangs)

(cherry picked from commit 5ff2560)
This enables the creation of trunk ports in neutron e.g. to be able to
use tagged vlans inside VM instances.

(cherry picked from commit 0d63f7e)
When all schedulers are picking the "best" host, in a 3 node
HA case they will all pick the same host, which is suboptimal.
Try to scale out a bit and increase retries in case of conflicts.

Even worse, a node that had still capacity when the scheduling
started might be out of memory at the time the VM is launched,
causing failed starts of VMs.

(cherry picked from commit 89071b4)
Also default to writeback for network, which is improving
the performance quite a bit for ceph backed volumes and is safe
to enable (and recommended by almost every openstack install guide)

(cherry picked from commit d5f5567)
@rsalevsky rsalevsky requested a review from rhafer May 4, 2018 13:07
@rsalevsky rsalevsky merged commit 420c44e into crowbar:stable/4.0 May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants