Forum Discussion
f5-declarative-onboarding error 422
- May 09, 2023
Maybe then better contact support as I see a lot of 422 errors but for AS3 not DO, so it could be something new.
This could be terraform issue as you said that in some cases you push the DO.
Have you tried ansible?
You can replace the file lookup with template lookup and the template can have variables and not be static as a file.
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_lookup.html
Also shouldn't templatefile() souldn't it have a destination file option that will be created and then you can use the destination file?
https://www.cloudbolt.io/terraform-best-practices/terraform-template/
Maybe also test depends-on option as the terraform resources to depend on the datasource as to be triggered after it.
https://developer.hashicorp.com/terraform/language/meta-arguments/depends_on
We would like to stick with Terraform as we plan on managing all of the app services using Terraform aswell. The odd part is the rendered output (below) from Terraform looks to be accurate. The destination file isn't required since we are passing this to AWS cloud-init agent via the "user_data" argument.
#cloud-config
tmos_declared:
enabled: true
icontrollx_trusted_sources: false
icontrollx_package_urls:
- "https://github.com/F5Networks/f5-declarative-onboarding/releases/download/v1.37.0/f5-declarative-onboarding-1.37.0-3.noarch.rpm"
- "https://github.com/F5Networks/f5-appsvcs-extension/releases/download/v3.44.0/f5-appsvcs-3.44.0-3.noarch.rpm"
do_declaration:
schemaVersion: 1.0.0
class: Device
async: true
label: Cloudinit Onboarding
Common:
class: Tenant
provisioningLevels:
class: Provision
ltm: dedicated
System:
class: System
hostname: dpl2-labnetsec
mgmtDhcpEnabled: false
autoCheck: false
autoPhonehome: true
dnsServers:
class: DNS
nameServers:
- 169.254.169.253
- 8.8.8.8
search:
- ops.sfdc.net
ntpServers:
class: NTP
servers:
- 169.254.169.253
- 8.8.8.8
EXT-VIPS-1-VLAN:
class: VLAN
tag: 102
interfaces:
- name: "1.2"
tagged: false
SelfIp_EXT-VIPS-1:
class: SelfIp
address: 10.169.97.40/24
vlan: EXT-VIPS-1-VLAN
trafficGroup: traffic-group-local-only
allowService: none
EXT-VIPS-2-VLAN:
class: VLAN
tag: 103
interfaces:
- name: "1.3"
tagged: false
SelfIp_EXT-VIPS-2:
class: SelfIp
address: 10.169.98.40/24
vlan: EXT-VIPS-2-VLAN
trafficGroup: traffic-group-local-only
allowService: none
EXT-VIPS-3-VLAN:
class: VLAN
tag: 104
interfaces:
- name: "1.4"
tagged: false
SelfIp_EXT-VIPS-3:
class: SelfIp
address: 10.169.99.40/24
vlan: EXT-VIPS-3-VLAN
trafficGroup: traffic-group-local-only
allowService: none
INT-VIPS-1-VLAN:
class: VLAN
tag: 105
interfaces:
- name: "1.5"
tagged: false
SelfIp_INT-VIPS-1:
class: SelfIp
address: 10.169.100.40/24
vlan: INT-VIPS-1-VLAN
trafficGroup: traffic-group-local-only
allowService: none
INT-VIPS-2-VLAN:
class: VLAN
tag: 106
interfaces:
- name: "1.6"
tagged: false
SelfIp_INT-VIPS-2:
class: SelfIp
address: 10.169.101.40/24
vlan: INT-VIPS-2-VLAN
trafficGroup: traffic-group-local-only
allowService: none
INT-VIPS-3-VLAN:
class: VLAN
tag: 107
interfaces:
- name: "1.7"
tagged: false
SelfIp_INT-VIPS-3:
class: SelfIp
address: 10.169.102.40/24
vlan: INT-VIPS-3-VLAN
trafficGroup: traffic-group-local-only
allowService: none
TRAFFIC-VLAN:
class: VLAN
tag: 101
interfaces:
- name: "1.1"
tagged: false
SelfIp_TRAFFIC:
class: SelfIp
address: 10.169.96.72/27
vlan: TRAFFIC-VLAN
trafficGroup: traffic-group-local-only
allowService: default
chpasswd:
list: |
admin:eni-abcd1234
expire: False
- Nikoolayy1May 09, 2023MVP
Maybe then better contact support as I see a lot of 422 errors but for AS3 not DO, so it could be something new.
- Nikoolayy1May 10, 2023MVP
I forgot to add that except a support case you can open a bug/issue in https://github.com/F5Networks/f5-declarative-onboarding/issues as for example:
https://github.com/F5Networks/f5-telemetry-streaming/issues/83
https://github.com/F5Networks/f5-appsvcs-extension/issues/338
Also review some as3 errors that may help indicate what the DO is seeing:
https://my.f5.com/manage/s/article/K08442428
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com