2025-04-15 16:19:50,649 - INFO - Domain Default found not creating
2025-04-15 16:19:50,794 - INFO - Project ctest-TestBasicPolicy-58757307 not found, creating it
2025-04-15 16:19:51,251 - INFO - Created Project:ctest-TestBasicPolicy-58757307, ID : 98390195-f2ba-4514-818d-69dc71e74215
2025-04-15 16:19:52,723 - INFO - ================================================================================
2025-04-15 16:19:52,723 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 16:19:52,723 - 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-04-15 16:19:52,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.0.0.65': '0'}} with
2025-04-15 16:19:52,976 - INFO - Initial checks done. Running the testcase now
2025-04-15 16:19:52,977 - INFO -
2025-04-15 16:19:53,531 - DEBUG - Response for create_network : {'network': {'id': '8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926', 'name': 'ctest-vn-76549126', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'project_id': '98390195f2ba4514818d69dc71e74215', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-vn-76549126'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 16:19:53,700 - DEBUG - Response for create_subnet : {'subnet': {'id': '66dbbe3f-c1a7-4dee-9383-8093297fe349', 'name': '', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'network_id': '8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926', 'ip_version': 4, 'cidr': '64.0.177.128/26', 'allocation_pools': [{'start': '64.0.177.130', 'end': '64.0.177.190'}], 'gateway_ip': '64.0.177.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.0.177.130', 'tags': [], 'project_id': '98390195f2ba4514818d69dc71e74215'}}
2025-04-15 16:19:53,719 - INFO - Created VN ctest-vn-76549126
2025-04-15 16:19:53,775 - DEBUG - VN ctest-vn-76549126 UUID is 8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926
2025-04-15 16:19:54,132 - DEBUG - Response for create_network : {'network': {'id': 'e2d77f7f-e239-4bd1-8996-a92e6933c724', 'name': 'ctest-vn-26325574', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'project_id': '98390195f2ba4514818d69dc71e74215', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-vn-26325574'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 16:19:54,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '169f40bd-ff26-42d7-b90c-7745b9c2ea83', 'name': '', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'network_id': 'e2d77f7f-e239-4bd1-8996-a92e6933c724', 'ip_version': 4, 'cidr': '46.166.0.128/26', 'allocation_pools': [{'start': '46.166.0.130', 'end': '46.166.0.190'}], 'gateway_ip': '46.166.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.166.0.130', 'tags': [], 'project_id': '98390195f2ba4514818d69dc71e74215'}}
2025-04-15 16:19:54,330 - INFO - Created VN ctest-vn-26325574
2025-04-15 16:19:54,379 - DEBUG - VN ctest-vn-26325574 UUID is e2d77f7f-e239-4bd1-8996-a92e6933c724
2025-04-15 16:19:54,511 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126, 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-58757307:ctest-vn-26325574, 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-04-15 16:19:54,827 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926', 'name': 'ctest-vn-76549126', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'project_id': '98390195f2ba4514818d69dc71e74215', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['66dbbe3f-c1a7-4dee-9383-8093297fe349'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-vn-76549126'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-policy-allow-all-73296491']], 'subnet_ipam': [{'subnet_cidr': '64.0.177.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 16:19:55,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2d77f7f-e239-4bd1-8996-a92e6933c724', 'name': 'ctest-vn-26325574', 'tenant_id': '98390195f2ba4514818d69dc71e74215', 'project_id': '98390195f2ba4514818d69dc71e74215', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['169f40bd-ff26-42d7-b90c-7745b9c2ea83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-vn-26325574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-policy-allow-all-73296491']], 'subnet_ipam': [{'subnet_cidr': '46.166.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 16:19:55,251 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 16:19:55,554 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 16:19:55,584 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008
2025-04-15 16:19:55,596 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215
2025-04-15 16:19:55,672 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926
2025-04-15 16:19:55,684 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926
2025-04-15 16:19:55,694 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98
2025-04-15 16:19:55,705 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98
2025-04-15 16:19:55,712 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/29f5151f-9e76-4661-be14-1a4edfb03b17
2025-04-15 16:19:55,719 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 16:19:55,719 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926
2025-04-15 16:19:55,729 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98
2025-04-15 16:19:55,745 - INFO - Verified VN network id 7 for VN 8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926
2025-04-15 16:19:55,745 - INFO - Verifications in API Server for VN ctest-vn-76549126 passed
2025-04-15 16:19:55,745 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926
2025-04-15 16:19:55,755 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98
2025-04-15 16:19:55,761 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/93aa70ff-f158-42e9-94aa-44c88ff3ab98
2025-04-15 16:19:55,768 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/29f5151f-9e76-4661-be14-1a4edfb03b17
2025-04-15 16:19:55,782 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58757307', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9397022707239832443', 'uuid-lslong': '12953759281398835494'}, 'enable': 'true', 'created': '2025-04-15T16:19:53', 'last-modified': '2025-04-15T16:19:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983609'}
2025-04-15 16:19:55,789 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 16:19:55,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76549126 passed
2025-04-15 16:19:55,789 - DEBUG - ====Verifying policy data for ctest-vn-76549126 in API_Server ======
2025-04-15 16:19:55,789 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 16:19:55,794 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008
2025-04-15 16:19:55,806 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215
2025-04-15 16:19:55,877 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8268ee5d-5b4f-4b7b-b3c4-ff6f39b26926
2025-04-15 16:19:55,887 - DEBUG - ==>Verifying data for policy with id: b1d14c9e-ebdd-434d-a5e0-254873981032, fqn: ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-policy-allow-all-73296491']
2025-04-15 16:19:55,887 - INFO - VN ctest-vn-76549126 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 16:19:55,887 - DEBUG - Verifying the vn in opserver
2025-04-15 16:19:55,887 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126 virtual network link through opserver 10.0.0.65
2025-04-15 16:19:55,887 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 16:19:56,175 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 16:19:56,233 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126?flat'}
2025-04-15 16:19:56,233 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-76549126 is found in opserver
2025-04-15 16:19:56,243 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 16:19:56,248 - DEBUG - VRF ids for VN ctest-vn-76549126: {}
2025-04-15 16:19:56,248 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 16:19:56,252 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008
2025-04-15 16:19:56,270 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215
2025-04-15 16:19:56,344 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724
2025-04-15 16:19:56,355 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724
2025-04-15 16:19:56,364 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557
2025-04-15 16:19:56,370 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557
2025-04-15 16:19:56,376 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/15505daf-2a49-42b8-81d9-76cc819a3761
2025-04-15 16:19:56,382 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 16:19:56,382 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724
2025-04-15 16:19:56,390 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557
2025-04-15 16:19:56,402 - INFO - Verified VN network id 8 for VN e2d77f7f-e239-4bd1-8996-a92e6933c724
2025-04-15 16:19:56,402 - INFO - Verifications in API Server for VN ctest-vn-26325574 passed
2025-04-15 16:19:56,402 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724
2025-04-15 16:19:56,410 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557
2025-04-15 16:19:56,416 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/bca1a328-40eb-45c0-973d-5e50c0cc4557
2025-04-15 16:19:56,422 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/15505daf-2a49-42b8-81d9-76cc819a3761
2025-04-15 16:19:56,435 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58757307', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16345673559797484497', 'uuid-lslong': '9914297646501316388'}, 'enable': 'true', 'created': '2025-04-15T16:19:54', 'last-modified': '2025-04-15T16:19:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395731'}
2025-04-15 16:19:56,445 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 16:19:56,445 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26325574 passed
2025-04-15 16:19:56,445 - DEBUG - ====Verifying policy data for ctest-vn-26325574 in API_Server ======
2025-04-15 16:19:56,445 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 16:19:56,452 - DEBUG - Requesting: http://10.0.0.65:8082/domain/29ed20a0-debe-424b-8fd5-2b37b09e2008
2025-04-15 16:19:56,465 - DEBUG - Requesting: http://10.0.0.65:8082/project/98390195-f2ba-4514-818d-69dc71e74215
2025-04-15 16:19:56,544 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e2d77f7f-e239-4bd1-8996-a92e6933c724
2025-04-15 16:19:56,554 - DEBUG - ==>Verifying data for policy with id: b1d14c9e-ebdd-434d-a5e0-254873981032, fqn: ['default-domain', 'ctest-TestBasicPolicy-58757307', 'ctest-policy-allow-all-73296491']
2025-04-15 16:19:56,554 - INFO - VN ctest-vn-26325574 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 16:19:56,554 - DEBUG - Verifying the vn in opserver
2025-04-15 16:19:56,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574 virtual network link through opserver 10.0.0.65
2025-04-15 16:19:56,554 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 16:19:56,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574?flat'}
2025-04-15 16:19:56,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58757307:ctest-vn-26325574 is found in opserver
2025-04-15 16:19:56,577 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 16:19:56,581 - DEBUG - VRF ids for VN ctest-vn-26325574: {}
2025-04-15 16:19:56,640 - DEBUG - Services list from nova: [