2025-01-03 07:38:38,289 - INFO - Domain Default found not creating
2025-01-03 07:38:38,431 - INFO - Project ctest-TestBasicPolicy-81011318 not found, creating it
2025-01-03 07:38:38,881 - INFO - Created Project:ctest-TestBasicPolicy-81011318, ID : b5d01469-3f71-4267-8ebf-837afdfc7f2c
2025-01-03 07:38:40,377 - INFO - ================================================================================
2025-01-03 07:38:40,377 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-03 07:38:40,377 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-01-03 07:38:40,631 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.8': '0'}} with
2025-01-03 07:38:40,631 - INFO - Initial checks done. Running the testcase now
2025-01-03 07:38:40,631 - INFO -
2025-01-03 07:38:41,195 - DEBUG - Response for create_network : {'network': {'id': 'f47146d8-1821-4539-ae30-76054938a263', 'name': 'ctest-vn-37024117', 'tenant_id': 'b5d014693f7142678ebf837afdfc7f2c', 'project_id': 'b5d014693f7142678ebf837afdfc7f2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81011318', 'ctest-vn-37024117'], 'port_security_enabled': True, 'description': ''}}
2025-01-03 07:38:41,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fec2368-d7c1-42f6-a4c8-487aa06034b9', 'name': '', 'tenant_id': 'b5d014693f7142678ebf837afdfc7f2c', 'network_id': 'f47146d8-1821-4539-ae30-76054938a263', 'ip_version': 4, 'cidr': '197.189.33.64/26', 'allocation_pools': [{'start': '197.189.33.66', 'end': '197.189.33.126'}], 'gateway_ip': '197.189.33.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.189.33.66', 'tags': [], 'project_id': 'b5d014693f7142678ebf837afdfc7f2c'}}
2025-01-03 07:38:41,411 - INFO - Created VN ctest-vn-37024117
2025-01-03 07:38:41,462 - DEBUG - VN ctest-vn-37024117 UUID is f47146d8-1821-4539-ae30-76054938a263
2025-01-03 07:38:41,759 - DEBUG - Response for create_network : {'network': {'id': 'bd7f523f-432f-4d6b-9eb5-3d48c7763081', 'name': 'ctest-vn-97039343', 'tenant_id': 'b5d014693f7142678ebf837afdfc7f2c', 'project_id': 'b5d014693f7142678ebf837afdfc7f2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81011318', 'ctest-vn-97039343'], 'port_security_enabled': True, 'description': ''}}
2025-01-03 07:38:41,979 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ffa7f92b-f0f8-4801-bb13-ab1ee8061a62', 'name': '', 'tenant_id': 'b5d014693f7142678ebf837afdfc7f2c', 'network_id': 'bd7f523f-432f-4d6b-9eb5-3d48c7763081', 'ip_version': 4, 'cidr': '27.56.138.64/26', 'allocation_pools': [{'start': '27.56.138.66', 'end': '27.56.138.126'}], 'gateway_ip': '27.56.138.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.56.138.66', 'tags': [], 'project_id': 'b5d014693f7142678ebf837afdfc7f2c'}}
2025-01-03 07:38:41,995 - INFO - Created VN ctest-vn-97039343
2025-01-03 07:38:42,046 - DEBUG - VN ctest-vn-97039343 UUID is bd7f523f-432f-4d6b-9eb5-3d48c7763081
2025-01-03 07:38:42,159 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-37024117, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-97039343, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-01-03 07:38:42,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f47146d8-1821-4539-ae30-76054938a263', 'name': 'ctest-vn-37024117', 'tenant_id': 'b5d014693f7142678ebf837afdfc7f2c', 'project_id': 'b5d014693f7142678ebf837afdfc7f2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2fec2368-d7c1-42f6-a4c8-487aa06034b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81011318', 'ctest-vn-37024117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81011318', 'ctest-policy-allow-all-85539835']], 'subnet_ipam': [{'subnet_cidr': '197.189.33.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-03 07:38:42,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd7f523f-432f-4d6b-9eb5-3d48c7763081', 'name': 'ctest-vn-97039343', 'tenant_id': 'b5d014693f7142678ebf837afdfc7f2c', 'project_id': 'b5d014693f7142678ebf837afdfc7f2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ffa7f92b-f0f8-4801-bb13-ab1ee8061a62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81011318', 'ctest-vn-97039343'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81011318', 'ctest-policy-allow-all-85539835']], 'subnet_ipam': [{'subnet_cidr': '27.56.138.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-03 07:38:42,826 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-03 07:38:43,125 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-03 07:38:43,154 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2939800b-34fe-46d3-bb1c-22a63b59c17b
2025-01-03 07:38:43,167 - DEBUG - Requesting: http://10.0.0.23:8082/project/b5d01469-3f71-4267-8ebf-837afdfc7f2c
2025-01-03 07:38:43,240 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f47146d8-1821-4539-ae30-76054938a263
2025-01-03 07:38:43,252 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f47146d8-1821-4539-ae30-76054938a263
2025-01-03 07:38:43,261 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/559644ba-f272-43db-a9a2-010f0aaf9321
2025-01-03 07:38:43,268 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/559644ba-f272-43db-a9a2-010f0aaf9321
2025-01-03 07:38:43,276 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/eeae5d65-9a32-4562-b405-cd889bda964f
2025-01-03 07:38:43,282 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-03 07:38:43,282 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f47146d8-1821-4539-ae30-76054938a263
2025-01-03 07:38:43,291 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/559644ba-f272-43db-a9a2-010f0aaf9321
2025-01-03 07:38:43,304 - INFO - Verified VN network id 9 for VN f47146d8-1821-4539-ae30-76054938a263
2025-01-03 07:38:43,304 - INFO - Verifications in API Server for VN ctest-vn-37024117 passed
2025-01-03 07:38:43,304 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f47146d8-1821-4539-ae30-76054938a263
2025-01-03 07:38:43,313 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/559644ba-f272-43db-a9a2-010f0aaf9321
2025-01-03 07:38:43,320 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/559644ba-f272-43db-a9a2-010f0aaf9321
2025-01-03 07:38:43,326 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/eeae5d65-9a32-4562-b405-cd889bda964f
2025-01-03 07:38:43,340 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-37024117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81011318', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17613937511554434361', 'uuid-lslong': '12551661926556934755'}, 'enable': 'true', 'created': '2025-01-03T07:38:41', 'last-modified': '2025-01-03T07:38:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907422'}
2025-01-03 07:38:43,346 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-03 07:38:43,346 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37024117 passed
2025-01-03 07:38:43,347 - DEBUG - ====Verifying policy data for ctest-vn-37024117 in API_Server ======
2025-01-03 07:38:43,347 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-03 07:38:43,352 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2939800b-34fe-46d3-bb1c-22a63b59c17b
2025-01-03 07:38:43,362 - DEBUG - Requesting: http://10.0.0.23:8082/project/b5d01469-3f71-4267-8ebf-837afdfc7f2c
2025-01-03 07:38:43,431 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f47146d8-1821-4539-ae30-76054938a263
2025-01-03 07:38:43,441 - DEBUG - ==>Verifying data for policy with id: aecf04d7-7915-4ccc-a9b0-256582b35c40, fqn: ['default-domain', 'ctest-TestBasicPolicy-81011318', 'ctest-policy-allow-all-85539835']
2025-01-03 07:38:43,441 - INFO - VN ctest-vn-37024117 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-03 07:38:43,441 - DEBUG - Verifying the vn in opserver
2025-01-03 07:38:43,441 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-37024117 virtual network link through opserver 10.0.0.23
2025-01-03 07:38:43,441 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-03 07:38:43,730 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-03 07:38:44,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-37024117', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-37024117?flat'}
2025-01-03 07:38:44,067 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-37024117 is found in opserver
2025-01-03 07:38:44,078 - DEBUG - Do not have enough data to verify VN in agent
2025-01-03 07:38:44,084 - DEBUG - VRF ids for VN ctest-vn-37024117: {}
2025-01-03 07:38:44,084 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-03 07:38:44,090 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2939800b-34fe-46d3-bb1c-22a63b59c17b
2025-01-03 07:38:44,105 - DEBUG - Requesting: http://10.0.0.23:8082/project/b5d01469-3f71-4267-8ebf-837afdfc7f2c
2025-01-03 07:38:44,178 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/bd7f523f-432f-4d6b-9eb5-3d48c7763081
2025-01-03 07:38:44,190 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/bd7f523f-432f-4d6b-9eb5-3d48c7763081
2025-01-03 07:38:44,199 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/39e12642-8d2e-4abc-a806-d8e324a962ed
2025-01-03 07:38:44,206 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/39e12642-8d2e-4abc-a806-d8e324a962ed
2025-01-03 07:38:44,213 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/048d1b05-ea56-4524-bd72-fd8352e78e97
2025-01-03 07:38:44,219 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-03 07:38:44,219 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/bd7f523f-432f-4d6b-9eb5-3d48c7763081
2025-01-03 07:38:44,229 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/39e12642-8d2e-4abc-a806-d8e324a962ed
2025-01-03 07:38:44,242 - INFO - Verified VN network id 10 for VN bd7f523f-432f-4d6b-9eb5-3d48c7763081
2025-01-03 07:38:44,242 - INFO - Verifications in API Server for VN ctest-vn-97039343 passed
2025-01-03 07:38:44,242 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/bd7f523f-432f-4d6b-9eb5-3d48c7763081
2025-01-03 07:38:44,251 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/39e12642-8d2e-4abc-a806-d8e324a962ed
2025-01-03 07:38:44,258 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/39e12642-8d2e-4abc-a806-d8e324a962ed
2025-01-03 07:38:44,265 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/048d1b05-ea56-4524-bd72-fd8352e78e97
2025-01-03 07:38:44,276 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-97039343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81011318', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13654723026874223979', 'uuid-lslong': '11436114211570593921'}, 'enable': 'true', 'created': '2025-01-03T07:38:41', 'last-modified': '2025-01-03T07:38:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.618629'}
2025-01-03 07:38:44,282 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-03 07:38:44,282 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97039343 passed
2025-01-03 07:38:44,283 - DEBUG - ====Verifying policy data for ctest-vn-97039343 in API_Server ======
2025-01-03 07:38:44,283 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-03 07:38:44,288 - DEBUG - Requesting: http://10.0.0.23:8082/domain/2939800b-34fe-46d3-bb1c-22a63b59c17b
2025-01-03 07:38:44,301 - DEBUG - Requesting: http://10.0.0.23:8082/project/b5d01469-3f71-4267-8ebf-837afdfc7f2c
2025-01-03 07:38:44,375 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/bd7f523f-432f-4d6b-9eb5-3d48c7763081
2025-01-03 07:38:44,384 - DEBUG - ==>Verifying data for policy with id: aecf04d7-7915-4ccc-a9b0-256582b35c40, fqn: ['default-domain', 'ctest-TestBasicPolicy-81011318', 'ctest-policy-allow-all-85539835']
2025-01-03 07:38:44,384 - INFO - VN ctest-vn-97039343 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-03 07:38:44,384 - DEBUG - Verifying the vn in opserver
2025-01-03 07:38:44,384 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-97039343 virtual network link through opserver 10.0.0.23
2025-01-03 07:38:44,384 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-03 07:38:44,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-97039343', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-97039343?flat'}
2025-01-03 07:38:44,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81011318:ctest-vn-97039343 is found in opserver
2025-01-03 07:38:44,406 - DEBUG - Do not have enough data to verify VN in agent
2025-01-03 07:38:44,411 - DEBUG - VRF ids for VN ctest-vn-97039343: {}
2025-01-03 07:38:44,464 - DEBUG - Services list from nova: [