Skip to content

Commit

Permalink
Merge pull request #6 from gridscale/release/release-1.2.0
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
fkr committed Aug 29, 2019
2 parents dd1766b + fe1168a commit ef38d15
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ locale/*.mo
locale/*/*.edit.po
locale/*/*.po.time_stamp
locale/*/*.pox
Dockerfile
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: ruby

rvm:
- 2.6.3

branches:
only:
- master

install:
- gem install bundler

script:
- gem build foreman_gridscale.gemspec

deploy:
provider: rubygems
api_key: $RUBYGEMS_APIKEY
gem: foreman_gridscale
gemspec: foreman_gridscale.gemspec
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
# Changelog

## [v1.0.3]
## [v1.2.0] (Aug 29, 2019)

- Fix IP-Selection (GH-1)
- Add MAC to model (GH-2/GH-3)
- Display IPv4/IPv6 in interface tab (GH-4)

## [v1.0.3] (Apr 29, 2019)

- Update descriptions and links after moving the repository to GitHub.

## [v1.0.2]
## [v1.0.2] (Feb 8, 2019)

- Allowed creating host to choose isoimage which available in gridscale user account
- Failover IPs are now correctly filtered out
- Targeting a correct URL to open VNC for a regular user

## [v1.0.1]
## [v1.0.1] (Dec 5, 2018)

- Decresed dependency to foreman 1.15
- Missing URL field in `_gridscale.html.erb`
This url field is needed for creating compute resource in foreman 1.15.

## [v1.0.0]
## [v1.0.0] (Nov 20, 2018)

- Initial release of foreman-gridscale

2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
* Aldemuro Haris <aldemuro@gridscale.io>
* Wouter Wijsman <wouter@gridscale.io>

* Ruben Schuller <schuller@bytemine.net>
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ Go to Infrastructure > Compute resource and select the compute resource for grid
* When creating a host, multiple network interfaces can be set to bootable. The gridscale platform does not support this, which is why only one of the interfaces will actually be set to bootable if this is the case
* When creating a compute profile, the chosen network interface configuration is not saved
* The Virtual Machines overview of a compute resource can take a long time to load
* The data shown in the VM tab of a host is not complete. More input about which information is useful is needed
* Opening the console of a host in Foreman has not been implemented, but a link to gridscale is supplied
* Acpi power off fails to shut down a system which did not boot
* MAC, IP4 and IP6 information is in the VM tab, not Interface

4 changes: 2 additions & 2 deletions app/helpers/gridscale_images_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def gridscale_server_field(f)
def select_ipv4(f, compute_resource)
addresses = Array.new
compute_resource.ips.each do |ip|
if ip.relations['servers'].empty? and ip.relations['loadbalancers'].empty? and ip.family ==4 and ip.failover = false
if ip.relations['servers'].empty? and ip.relations['loadbalancers'].empty? and ip.family ==4 and ip.failover == false
addresses << ip
end
end
Expand All @@ -29,7 +29,7 @@ def select_ipv4(f, compute_resource)
def select_ipv6(f, compute_resource)
addresses = Array.new
compute_resource.ips.each do |ip|
if ip.relations['servers'].empty? and ip.relations['loadbalancers'].empty? and ip.family ==6 and ip.failover = false
if ip.relations['servers'].empty? and ip.relations['loadbalancers'].empty? and ip.family ==6 and ip.failover == false
addresses << ip
end
end
Expand Down
7 changes: 6 additions & 1 deletion app/models/concerns/fog_extensions/gridscale/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Server
extend ActiveSupport::Concern

attr_accessor :object_uuid, :mac, :server_uuid, :interfaces_attributes, :ipv4_address, :ipv6_address
alias_attribute :ip, :ipv4_address
alias_attribute :ip6, :ipv6_address

def state
requires :status
Expand Down Expand Up @@ -57,7 +59,10 @@ def mac_addr
:mac
end


def select_nic(fog_nics, nic)
# foreman-xenserver uses fog_nics[0] here, so I'll just copy that for now.
fog_nics[0]
end
end
end
end
2 changes: 1 addition & 1 deletion app/models/foreman_gridscale/gridscale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def to_label
end

def provided_attributes
super.merge({})
super.merge({:mac => :mac})
end

def get_ip(ipaddr_uuid)
Expand Down
2 changes: 1 addition & 1 deletion lib/foreman_gridscale/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ForemanGridscale
VERSION = '1.0.3'.freeze
VERSION = '1.2.0'.freeze
end

0 comments on commit ef38d15

Please sign in to comment.