cyclades: Fix and rename snf-command
Replace snf-manage floating-ip-history with ip-listsnf-manage ip-list (--address <ip_address>) (--server <server-id>)This is a normal ListCommand so it can take other options like--filter-by.
Merge branch 'hotfix-0.14.10' into develop
Conflicts: Changelog snf-cyclades-app/synnefo/api/servers.py snf-cyclades-app/synnefo/logic/backend.py snf-cyclades-app/synnefo/logic/callbacks.py snf-cyclades-app/synnefo/logic/management/commands/reconcile-networks.py...
cyclades: Update disk_templates if empty
Make backend_allocator to refresh the available disk templates of abackend if there are empty.
cyclades: Rename option
Rename '--allocation-pools' option to '--allocation-pool'.
cyclades: Check drained only if not destroying
Check drained flag only if network actions is not destroy. When networkis being destroyed the network is automatically marked as drained toexclude it from IP allocations.
cyclades: Check for all finalized states
cyclades: Fix broken tests
Fix some tests that broke because of recent changes in astakosclient.The 'token' argument has been removed, so all mocking arguments areshifted by one.
cyclades: Fix floating_ip resource counting
cyclades: sed 's/astakos_url/astakos_auth_url/g'
ui: Floating IP connect vm overlay fix
pass collection instead of array in show_vms call
ui: Improve dynamic model attributes handling
ui: Avoid floating ip disconnect on busy vms
cyclades: Handle snf-ganeti bug
Create IPv6 only networks as /29 because snf-ganeti can not create /30networks.
cyclades: Replace ASTAKOS_BASE_URL
Replace ASTAKOS_BASE_URL with ASTAKOS_AUTH_URL.
Merge branch 'feature-cyclades-networks' into develop
Conflicts: snf-cyclades-app/synnefo/api/management/commands/server-inspect.py snf-cyclades-app/synnefo/app_settings/urls.py snf-cyclades-app/synnefo/logic/backend.py snf-cyclades-app/synnefo/logic/backend_allocator.py...
ui: Various styles improvements
ui: Improve port status display
ui: Refactored network/ip vm connect overlay
ui: Prefetch network api data on app initialization
cyclades: Fix some broking tests
cyclades: Update common.get_subnet()
cyclades: Rename snf-manage floating-ip-state
New name is snf-manage floating-ip-history <floating-ip-address>Get info about which servers this ip is or was connected to.
ui: Allow disconnect of floating network ports
ui: Configurable forced networks in network select view
ui: Network select view improvements in vm wizard
ui: Missing resize action icon
ui: Implement floating ip port disconnect
ui: Separate truncate length for icon/single port list views
cyclades: Fix a bug in network and subnet create
cyclades: Add a new function in logic/subnets.py
plankton: Fix check about object permissions
Update check after getting an objects permissions to fail only if animage gets permissions from a None path and the object has permissions.Also, instead of just logging a warning, raise an exception.
cyclades: Retry failed instance creation
Handle special case where an OP_INSTANCE_CREATE job which uses theopportunistic locking feature fails. This failure is probably due to thefact that all nodes may be already locked. In this case, makesnf-dispatcher retry the failed job with opportunistic locking turned...
cyclades: Fix compatibility issues with networks
From version 2.7, Ganeti returns the network's UUID field in nics'networks' attribute. Instead use 'networks.names' attribute to getthe network name.
cyclades: fix typo in snf-dispatcher
cyclades: Fix case where 'dfree' is None
If Ganeti has not enabled 'plain' or 'drbd' disk template, then itreports 'dfree' as None. Fix this corner case by treating None as 0.
cyclades: Small fixes to network reconciliation
cyclades: New style format for modifying a NIC
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
cyclades: Remove hotplug from InstanceCreate
cyclades: Pass network type info as network tag
cyclades: Remove deprecated network type in ganeti
cyclades: Use opportunistic locking
Use opportunistic locking, introduced in Ganeti 2.7, to allow parallel creationof VMs in the Ganeti backend. When this option is set, Ganeti iallocatorwill allocate the VM only to nodes that not locked (e.g. by other VM...
gtools: Fix compatibility issues with ganeti-2.7
cyclades: Fix bug in network reconciliation
Skip reconciliation for a network that does not exist in the DB, ifreconciliation is running without the '--fix' option.
cyclades: Fix --allocation-pool in subnet-create
Update the way allocation-pools work in subnet-create. Now,--allocation-pool can be used multiple times, each time for a differentpool. Eg.,snf-manage subnet-create --network-id 1 --cidr 192.168.42.0/24...
Merge branch 'master' into develop
Conflicts: Changelog astakosclient/astakosclient/keypath.py ci/utils.py docs/admin-guide.rst snf-astakos-app/astakos/im/cookie.py snf-astakos-app/astakos/im/functions.py snf-astakos-app/astakos/im/quotas.py snf-astakos-app/astakos/im/views/projects.py...
cyclades: Simplify code to 'logic.subnets' module
cyclades: Simplify code of 'api.subnets' module
cyclades: Fix bug in floating-ip-remove
Add decorator convert_api_faults
cyclades: snf-manage floating-ip-state
snf-manage floating-ip-state <floating_ip_state>Find if a floating-ip is attached to a server or not.IPAddressLog now can contain multiple entries for the same ip.
cyclades: snf-manage por-list --server --public
List only ports connected to public networksList only ports connected to a specific server
cyclades: snf-manage server-create --port
cyclades: Fix some typos
cyclades: Change default value for dhcp option
Change default value of 'dhcp' option in snf-manage network-create command.
cyclades: Do not print IP pool for IPv6 only nets
Do not print IP pool of Ganeti network in case the network is an IPv6only network. The Ganeti network has a dummy IPv5 subnet, just becauseit is needed. Only change this dummy subnet to /30 to reduce space in...
cyclades: Handle 'drained' flag of networks
cyclades: Fix corner case in reconciliation
If at the end of reconciliation the state of the network is not ACTIVE,try to recompute the state of the network based on the state of thenetworks in each backend. This step is mostly needed in case that thenetwork does not exist in any backend.
cyclades: More strict 'on_delete' for models
Use 'models.PROTECT' for 'on_delete' attribute for some ForeignKeyrelationship between networking models. This will create a more "strict" database and protect for unexpected data loss.
cyclades: Fix reconciliation of floating IP pools
Remove special handling of floating IP pools in reconciliationmechanism since floating IP pools are treated the same way with othernetworks.
ui: Single IP addresesses view improvement
ui: Styles fix
ui: Single vm view ip addresses fix
ui: Display resize in vm actions list
ui: Update network api endpoint
ui: IP addresses togger in single vm view
ui: Truncate template helper
cyclades: Pass 'nfdhcp' tag to IPv6 networks
Pass 'nfdhcp' tag even if network is IPv6 only.
cyclades: Optimize *-list commands
Use prefetch_related and select-related to importive the DB queries thatare generated by *-list snf-manage commands.
cyclades: Code refactoring to backend module
cyclades: Fix bug in SeparatedValuesField
Return [] instead of None, if the field is null.
cyclades: Fix init of networks in backend-add
Fix which networks are going to be initialized in the new backend andhow the are printed in the output!
cyclades: Add option to display IPs in server-list
cyclades: Retrieve image names only if needed
Retrieve images from plankton only if the user asked for the image name.Otherwise just display the image ID. This will significantly speed upthe execution time of 'server-list' management command.
cyclades: Changes service type of net resources
cyclades: Remove old networks API
cyclades: Fix network-create management command
Fix when network is created in the Ganeti backends. The network must becreated in the Ganeti backends only after IPv4 or/and IPv6 subnet hasbeen created. This commit moves the code that created the network in the...
cyclades: Return 'links' in subnet and port calls
cyclades: Fix bugs in subnets and ports
cyclades: Create IPv6 Addresses from dispatcher
When ports are created from the API they do not have an IPv6 address.The IPv6 address is only available after the MAC address of theNIC is known which is only available after the message from theGaneti backend has been received. However, dispatcher did not created...
cyclades: Create 'cyclades_network' service
Create 'cyclades_network' service which is part of Cyclades, of 'network'type and with 'network' prefix to hold all API endpoints that arerelative with networks. So, for example, the endpoint for networks will...
cyclades: Merge subnet-create with network-create
cyclades: Fix bug in tests
Fix bug in port tests that were introduced by latest changes in IPPoolmanager.
Cyclades: Rename 'Can not' to 'Cannot' to all msgs
cyclades: Fix bug and typo in IPPool
cyclades: Do not allow any action on 'ERROR' vms
Do not allow any action, other than 'DESTROY' in servers that are in'ERROR' state. If the server is in 'ERROR' state then the correspondingGaneti instance may not exist, so all actions will fail.
cyclades: Fix handling of old IP pools
Before implementing the Neutron API, each network had one IP pool thatcontained the whole subnet CIDR. This changed since now we have multipleIP Pools(with base and offset attributes) per network and this IP pools...
cyclades: Add a test for subnet creation
cyclades: Update snf-manage subnet-create
cyclades: Fix a typo in api/subnets.py
ui: Initial refactoring for network view in vm wizard
ui: Base view object fixes
ui: Styles update
additional styles for active status indicators
ui: Additional storage_attrs funcionality
allow custom model id resolver
ui: Private network view improvements
display subnet cidr when available
ui: Separate network/subnet create calls
ui: VM status typo
ui: IP addresses subview in icon vms view
ui: Port connect/disconnect api calls
cyclades: Fix default/forced server networking
Fix the default behaviour for networking of servers that are beingcreated. There are two settings controlling this behaviour:
cyclades: Add missing 'ips' module