Bonjour,
J'utilise cette API (parmis d'autre) via un playbook Ansible afin de créer un environnement de Recette à la volée. L'abstraction qu'elle fournit m'est donc très utile et m'évite de descendre au niveau d'OpenStack... Cependant depuis plusieurs semaine, il n'est plus possible de spécifier une IP:
```python
ovh_client.post('/cloud/project/{serviceName}/instance/{instanceId}/interface'.format(serviceName='*************', instanceId='*************'), networkId='***********', ip='192.168.54.71')
Traceback (most recent call last):
File "", line 1, in
File "/var/dashboard/venv/lib/python3.4/site-packages/ovh/client.py", line 377, in post
return self.call('POST', _target, kwargs, _need_auth)
File "/var/dashboard/venv/lib/python3.4/site-packages/ovh/client.py", line 446, in call
response=result)
ovh.exceptions.BadParametersError: Invalid input for field/attribute 0. Value: {u'subnet_id': u'', u'ip_address': u'192.168.54.71'}. Additional properties are not allowed (u'subnet_id' was unexpected)
```
Si je ne spécifie pas d'IP, ca fonctionne :
```python
ovh_client.post('/cloud/project/{serviceName}/instance/{instanceId}/interface'.format(serviceName='***********************, instanceId='******************'), networkId='**************')
{'macAddress': 'fa:16:3e:c0:72:88', 'state': 'DOWN', 'fixedIps': [{'subnetId': *********************', 'ip': '192.168.54.79'}], 'id': '43e652e2-9dec-40fe-9b28-588d8eea4f9f', 'type': 'private', 'networkId': '***********'}
```
Pourtant mon sous-reseau semble correctement configuré :
```python
ovh_client.get('/cloud/project/{serviceName}/network/private/{networkId}/subnet'.format(serviceName='**************************', networkId='***********'))
[{'ipPools': [{'network': '192.168.54.0/24', 'dhcp': False, 'region': 'SBG3', 'start': '192.168.54.50', 'end': '192.168.54.90'}], 'id': '********************, 'gatewayIp': None, 'cidr': '192.168.54.0/24'}]
```
Voyez vous ce que je loupe ? Y a-t-il un problème avec l'API ?
Public Cloud OVHcloud - API /cloud/project/{serviceName}/instance/{instanceId}/interface
Related questions
- Dimensionnement serveur MySQL
44652
07.11.2018 12:32
- [RESOLU] Connexion impossible en SSH
37306
05.06.2019 20:05
- Bonjour, Je n'est reçus aucun mot de passe root lors de mon achat!
32631
05.02.2018 20:47
- Gitlab private docker registry
32447
16.03.2018 13:05
- Ssh connection timed out port 22
31670
11.12.2019 08:21
- Configuration IP failover avec netplan (Ubuntu 17.10)
31216
12.01.2018 23:23
- Problème connexion ssh
30901
04.02.2018 09:46
- IP Failover sur Debian 9
30595
18.11.2016 20:40
- Instance Public Cloud en "error"
28114
15.12.2025 10:04
- Connexion OpenStack Swift Object Storage
24326
11.04.2019 10:09
Salut, il y avait en effet un bug dans l'api ovh qui envoyait un paramètre subnet vide à l'api openstack alors qu'elle devait simplement envoyer l'ip. Ça devrait être fixé maintenant, tu valides ?
Oui, je confirme : ça fonctionne de nouveau.
Merci :)