2025-11-05 17:10:39,783 - INFO - Domain Default found not creating
2025-11-05 17:10:39,921 - INFO - Project ctest-TestBasicPolicy-52326472 not found, creating it
2025-11-05 17:10:40,356 - INFO - Created Project:ctest-TestBasicPolicy-52326472, ID : f6def4b5-d419-41f8-84c6-e7b6e32a31c8
2025-11-05 17:10:41,783 - INFO - ================================================================================
2025-11-05 17:10:41,784 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 17:10:41,784 - 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-11-05 17:10:42,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with
2025-11-05 17:10:42,043 - INFO - Initial checks done. Running the testcase now
2025-11-05 17:10:42,043 - INFO -
2025-11-05 17:10:42,571 - DEBUG - Response for create_network : {'network': {'id': '925e3829-d43b-4350-9a74-6dd81f49b37a', 'name': 'ctest-vn-63453543', 'tenant_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'project_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52326472', 'ctest-vn-63453543'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 17:10:42,758 - DEBUG - Response for create_subnet : {'subnet': {'id': '347de28f-2a5d-4bdc-861f-e6410e2f90c2', 'name': '', 'tenant_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'network_id': '925e3829-d43b-4350-9a74-6dd81f49b37a', 'ip_version': 4, 'cidr': '209.108.176.64/26', 'allocation_pools': [{'start': '209.108.176.66', 'end': '209.108.176.126'}], 'gateway_ip': '209.108.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.108.176.66', 'tags': [], 'project_id': 'f6def4b5d41941f884c6e7b6e32a31c8'}}
2025-11-05 17:10:42,777 - INFO - Created VN ctest-vn-63453543
2025-11-05 17:10:42,828 - DEBUG - VN ctest-vn-63453543 UUID is 925e3829-d43b-4350-9a74-6dd81f49b37a
2025-11-05 17:10:43,129 - DEBUG - Response for create_network : {'network': {'id': 'a9225b69-ebb3-4991-8081-d47889b03615', 'name': 'ctest-vn-95903221', 'tenant_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'project_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52326472', 'ctest-vn-95903221'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 17:10:43,314 - DEBUG - Response for create_subnet : {'subnet': {'id': '858fc295-d7cf-4ffb-94c2-754185ada681', 'name': '', 'tenant_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'network_id': 'a9225b69-ebb3-4991-8081-d47889b03615', 'ip_version': 4, 'cidr': '117.108.25.64/26', 'allocation_pools': [{'start': '117.108.25.66', 'end': '117.108.25.126'}], 'gateway_ip': '117.108.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.108.25.66', 'tags': [], 'project_id': 'f6def4b5d41941f884c6e7b6e32a31c8'}}
2025-11-05 17:10:43,336 - INFO - Created VN ctest-vn-95903221
2025-11-05 17:10:43,388 - DEBUG - VN ctest-vn-95903221 UUID is a9225b69-ebb3-4991-8081-d47889b03615
2025-11-05 17:10:43,508 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-63453543, 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-52326472:ctest-vn-95903221, 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-11-05 17:10:43,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '925e3829-d43b-4350-9a74-6dd81f49b37a', 'name': 'ctest-vn-63453543', 'tenant_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'project_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['347de28f-2a5d-4bdc-861f-e6410e2f90c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52326472', 'ctest-vn-63453543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52326472', 'ctest-policy-allow-all-07965327']], 'subnet_ipam': [{'subnet_cidr': '209.108.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 17:10:44,091 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9225b69-ebb3-4991-8081-d47889b03615', 'name': 'ctest-vn-95903221', 'tenant_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'project_id': 'f6def4b5d41941f884c6e7b6e32a31c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['858fc295-d7cf-4ffb-94c2-754185ada681'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52326472', 'ctest-vn-95903221'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52326472', 'ctest-policy-allow-all-07965327']], 'subnet_ipam': [{'subnet_cidr': '117.108.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 17:10:44,256 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 17:10:44,546 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 17:10:44,581 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f949f6e3-268e-4fd4-a19d-51f2e7b15998
2025-11-05 17:10:44,596 - DEBUG - Requesting: http://10.0.0.242:8082/project/f6def4b5-d419-41f8-84c6-e7b6e32a31c8
2025-11-05 17:10:44,672 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/925e3829-d43b-4350-9a74-6dd81f49b37a
2025-11-05 17:10:44,684 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/925e3829-d43b-4350-9a74-6dd81f49b37a
2025-11-05 17:10:44,695 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f78c957c-f65c-40a5-bb30-1baffbc1994b
2025-11-05 17:10:44,704 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f78c957c-f65c-40a5-bb30-1baffbc1994b
2025-11-05 17:10:44,713 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/badc4ad7-cdd9-404d-9899-8f9822301b96
2025-11-05 17:10:44,720 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 17:10:44,720 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/925e3829-d43b-4350-9a74-6dd81f49b37a
2025-11-05 17:10:44,731 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f78c957c-f65c-40a5-bb30-1baffbc1994b
2025-11-05 17:10:44,749 - INFO - Verified VN network id 11 for VN 925e3829-d43b-4350-9a74-6dd81f49b37a
2025-11-05 17:10:44,749 - INFO - Verifications in API Server for VN ctest-vn-63453543 passed
2025-11-05 17:10:44,749 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/925e3829-d43b-4350-9a74-6dd81f49b37a
2025-11-05 17:10:44,760 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f78c957c-f65c-40a5-bb30-1baffbc1994b
2025-11-05 17:10:44,769 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f78c957c-f65c-40a5-bb30-1baffbc1994b
2025-11-05 17:10:44,777 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/badc4ad7-cdd9-404d-9899-8f9822301b96
2025-11-05 17:10:44,790 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-63453543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52326472', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10546929129653748560', 'uuid-lslong': '11129641354144625530'}, 'enable': 'true', 'created': '2025-11-05T17:10:42', 'last-modified': '2025-11-05T17:10:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005056'}
2025-11-05 17:10:44,796 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 17:10:44,796 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63453543 passed
2025-11-05 17:10:44,796 - DEBUG - ====Verifying policy data for ctest-vn-63453543 in API_Server ======
2025-11-05 17:10:44,796 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 17:10:44,802 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f949f6e3-268e-4fd4-a19d-51f2e7b15998
2025-11-05 17:10:44,816 - DEBUG - Requesting: http://10.0.0.242:8082/project/f6def4b5-d419-41f8-84c6-e7b6e32a31c8
2025-11-05 17:10:44,894 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/925e3829-d43b-4350-9a74-6dd81f49b37a
2025-11-05 17:10:44,905 - DEBUG - ==>Verifying data for policy with id: b268bd0a-6ca6-48fa-a3da-c12a739d6ccb, fqn: ['default-domain', 'ctest-TestBasicPolicy-52326472', 'ctest-policy-allow-all-07965327']
2025-11-05 17:10:44,905 - INFO - VN ctest-vn-63453543 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 17:10:44,905 - DEBUG - Verifying the vn in opserver
2025-11-05 17:10:44,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-63453543 virtual network link through opserver 10.0.0.242
2025-11-05 17:10:44,906 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-05 17:10:45,213 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-05 17:10:45,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-63453543', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-63453543?flat'}
2025-11-05 17:10:45,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-63453543 is found in opserver
2025-11-05 17:10:45,294 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 17:10:45,299 - DEBUG - VRF ids for VN ctest-vn-63453543: {}
2025-11-05 17:10:45,299 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 17:10:45,305 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f949f6e3-268e-4fd4-a19d-51f2e7b15998
2025-11-05 17:10:45,315 - DEBUG - Requesting: http://10.0.0.242:8082/project/f6def4b5-d419-41f8-84c6-e7b6e32a31c8
2025-11-05 17:10:45,387 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9225b69-ebb3-4991-8081-d47889b03615
2025-11-05 17:10:45,399 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9225b69-ebb3-4991-8081-d47889b03615
2025-11-05 17:10:45,408 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8f47ba0-87da-4ccb-b4e1-5460b541a849
2025-11-05 17:10:45,415 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8f47ba0-87da-4ccb-b4e1-5460b541a849
2025-11-05 17:10:45,422 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/11a21639-303b-40d0-928f-0fbef632d660
2025-11-05 17:10:45,428 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 17:10:45,428 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9225b69-ebb3-4991-8081-d47889b03615
2025-11-05 17:10:45,437 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8f47ba0-87da-4ccb-b4e1-5460b541a849
2025-11-05 17:10:45,449 - INFO - Verified VN network id 12 for VN a9225b69-ebb3-4991-8081-d47889b03615
2025-11-05 17:10:45,449 - INFO - Verifications in API Server for VN ctest-vn-95903221 passed
2025-11-05 17:10:45,449 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9225b69-ebb3-4991-8081-d47889b03615
2025-11-05 17:10:45,459 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8f47ba0-87da-4ccb-b4e1-5460b541a849
2025-11-05 17:10:45,466 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b8f47ba0-87da-4ccb-b4e1-5460b541a849
2025-11-05 17:10:45,473 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/11a21639-303b-40d0-928f-0fbef632d660
2025-11-05 17:10:45,483 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-95903221', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52326472', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12187404052102072721', 'uuid-lslong': '9259915923021641237'}, 'enable': 'true', 'created': '2025-11-05T17:10:43', 'last-modified': '2025-11-05T17:10:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464790'}
2025-11-05 17:10:45,491 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 17:10:45,491 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95903221 passed
2025-11-05 17:10:45,491 - DEBUG - ====Verifying policy data for ctest-vn-95903221 in API_Server ======
2025-11-05 17:10:45,491 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-05 17:10:45,496 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f949f6e3-268e-4fd4-a19d-51f2e7b15998
2025-11-05 17:10:45,506 - DEBUG - Requesting: http://10.0.0.242:8082/project/f6def4b5-d419-41f8-84c6-e7b6e32a31c8
2025-11-05 17:10:45,576 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a9225b69-ebb3-4991-8081-d47889b03615
2025-11-05 17:10:45,584 - DEBUG - ==>Verifying data for policy with id: b268bd0a-6ca6-48fa-a3da-c12a739d6ccb, fqn: ['default-domain', 'ctest-TestBasicPolicy-52326472', 'ctest-policy-allow-all-07965327']
2025-11-05 17:10:45,584 - INFO - VN ctest-vn-95903221 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 17:10:45,584 - DEBUG - Verifying the vn in opserver
2025-11-05 17:10:45,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-95903221 virtual network link through opserver 10.0.0.242
2025-11-05 17:10:45,584 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-05 17:10:45,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-95903221', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-95903221?flat'}
2025-11-05 17:10:45,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52326472:ctest-vn-95903221 is found in opserver
2025-11-05 17:10:45,603 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 17:10:45,608 - DEBUG - VRF ids for VN ctest-vn-95903221: {}
2025-11-05 17:10:45,665 - DEBUG - Services list from nova: [