-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
422 - declaration failed - one or more properties must be specified #3569
Comments
Hi @tmsdce does your virtual server reference to an k8s service is duplicate, have two difference virtual server use same service ? |
Hi @nansenat16 This could very well be a bug with AS3 itself but I want to clarify if the AS3 json generated by the CIS is indeed OK or do really have some properties missing in some way |
Hi @tmsdce CIS Version : 2.18.0 CIS config
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: ingress-nginx-controller
spec:
selector:
app: nginx
ports:
- name: http
nodePort: 30001
protocol: TCP
port: 80
targetPort: 80
type: NodePort
---
apiVersion: cis.f5.com/v1
kind: VirtualServer
metadata:
name: example
namespace: default
labels:
f5cr: "true"
spec:
host: www.example.com
virtualServerAddress: 10.9.55.34
defaultPool:
reference: service
service: ingress-nginx-controller
serviceNamespace: default
servicePort: 80
pools:
- path: /example
service: ingress-nginx-controller
servicePort: 80
|
Thanks for the suggestion @nansenat16 I see that you're using a more recent version of LTM (17 vs 16), maybe it could be related. I also need to point out the following :
|
@tmsdce Please try posting the AS3 using any Rest client
Configure CIS with AS3DEBUG and share exact AS3 declaration posted by CIS. Share the info to automation_toolchain_pm at f5 dot com |
Setup Details
CIS Version : 2.18.0
Build: f5networks/k8s-bigip-ctlr:2.18.0
BIGIP Version: Big IP 16.1.4.2 Build 0.0.3 Point Release 2 (Virtual Edition)
AS3 Version: 3.52.0
Agent Mode: AS3
Orchestration: K8S
Orchestration Version: 1.30.4
Pool Mode: Nodeport
Additional Setup details: Calico is used as CNI
Description
I was giving a first shot at CIS using the
VirtualServer
CRD and I keep on getting a422
error with a very generic logone or more properties must be specified
. I know there has been many issues regarding the 422 status code in the past but I didn't find a workaround.Steps To Reproduce
VirtualServer
definition. Note that theingress-nginx-controller
service is of typeNodePort
Expected Result
After applying the above manifest, I get the following in CIS logs
Actual Result
Objects (vs, pools, nodes, policies) should be created
Diagnostic Information
tcpdump
on the LTM. The following payload is received by AS3tcpdump
, here's the response sent by AS3 which is a bit more complete but doesn't really point out what are the properties that are missing"traceResponse": true
in the payload). Appart from showing more info about the tmsh commands used under the hood, I didn't get useful hints about what's wrong with the payload.The text was updated successfully, but these errors were encountered: