2025-03-17 02:27:35,468 - INFO - Domain Default found not creating
2025-03-17 02:27:35,616 - INFO - Project ctest-TestBasicPolicy-71007601 not found, creating it
2025-03-17 02:27:36,105 - INFO - Created Project:ctest-TestBasicPolicy-71007601, ID : 9eee1c88-a348-48e4-a338-2517be87f523
2025-03-17 02:27:37,553 - INFO - ================================================================================
2025-03-17 02:27:37,553 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-17 02:27:37,553 - 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-03-17 02:27:37,810 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.0.0.46': '0'}} with
2025-03-17 02:27:37,810 - INFO - Initial checks done. Running the testcase now
2025-03-17 02:27:37,810 - INFO -
2025-03-17 02:27:38,363 - DEBUG - Response for create_network : {'network': {'id': 'c8c699af-843b-4634-bebd-87aea58abd41', 'name': 'ctest-vn-78903743', 'tenant_id': '9eee1c88a34848e4a3382517be87f523', 'project_id': '9eee1c88a34848e4a3382517be87f523', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71007601', 'ctest-vn-78903743'], 'port_security_enabled': True, 'description': ''}}
2025-03-17 02:27:38,574 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9635c20-d2bf-4b27-9feb-6f83c4ae15fe', 'name': '', 'tenant_id': '9eee1c88a34848e4a3382517be87f523', 'network_id': 'c8c699af-843b-4634-bebd-87aea58abd41', 'ip_version': 4, 'cidr': '37.155.31.0/26', 'allocation_pools': [{'start': '37.155.31.2', 'end': '37.155.31.62'}], 'gateway_ip': '37.155.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.155.31.2', 'tags': [], 'project_id': '9eee1c88a34848e4a3382517be87f523'}}
2025-03-17 02:27:38,593 - INFO - Created VN ctest-vn-78903743
2025-03-17 02:27:38,648 - DEBUG - VN ctest-vn-78903743 UUID is c8c699af-843b-4634-bebd-87aea58abd41
2025-03-17 02:27:38,985 - DEBUG - Response for create_network : {'network': {'id': 'afe33f94-6c38-470b-9f71-2068bc946d32', 'name': 'ctest-vn-35891480', 'tenant_id': '9eee1c88a34848e4a3382517be87f523', 'project_id': '9eee1c88a34848e4a3382517be87f523', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71007601', 'ctest-vn-35891480'], 'port_security_enabled': True, 'description': ''}}
2025-03-17 02:27:39,146 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f2903cc-c94a-4ab5-b1a1-68a88e8f326b', 'name': '', 'tenant_id': '9eee1c88a34848e4a3382517be87f523', 'network_id': 'afe33f94-6c38-470b-9f71-2068bc946d32', 'ip_version': 4, 'cidr': '133.216.176.64/26', 'allocation_pools': [{'start': '133.216.176.66', 'end': '133.216.176.126'}], 'gateway_ip': '133.216.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.216.176.66', 'tags': [], 'project_id': '9eee1c88a34848e4a3382517be87f523'}}
2025-03-17 02:27:39,165 - INFO - Created VN ctest-vn-35891480
2025-03-17 02:27:39,224 - DEBUG - VN ctest-vn-35891480 UUID is afe33f94-6c38-470b-9f71-2068bc946d32
2025-03-17 02:27:39,344 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-78903743, 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-71007601:ctest-vn-35891480, 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-03-17 02:27:39,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8c699af-843b-4634-bebd-87aea58abd41', 'name': 'ctest-vn-78903743', 'tenant_id': '9eee1c88a34848e4a3382517be87f523', 'project_id': '9eee1c88a34848e4a3382517be87f523', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9635c20-d2bf-4b27-9feb-6f83c4ae15fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71007601', 'ctest-vn-78903743'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71007601', 'ctest-policy-allow-all-75679254']], 'subnet_ipam': [{'subnet_cidr': '37.155.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-17 02:27:39,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afe33f94-6c38-470b-9f71-2068bc946d32', 'name': 'ctest-vn-35891480', 'tenant_id': '9eee1c88a34848e4a3382517be87f523', 'project_id': '9eee1c88a34848e4a3382517be87f523', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f2903cc-c94a-4ab5-b1a1-68a88e8f326b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71007601', 'ctest-vn-35891480'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71007601', 'ctest-policy-allow-all-75679254']], 'subnet_ipam': [{'subnet_cidr': '133.216.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-17 02:27:40,112 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-17 02:27:40,408 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-17 02:27:40,442 - DEBUG - Requesting: http://10.0.0.46:8082/domain/cea3de82-6af3-458d-b61f-d5425465021f
2025-03-17 02:27:40,456 - DEBUG - Requesting: http://10.0.0.46:8082/project/9eee1c88-a348-48e4-a338-2517be87f523
2025-03-17 02:27:40,531 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/c8c699af-843b-4634-bebd-87aea58abd41
2025-03-17 02:27:40,543 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/c8c699af-843b-4634-bebd-87aea58abd41
2025-03-17 02:27:40,555 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/32357ba8-9ea3-458e-a5c7-767944e4ca53
2025-03-17 02:27:40,563 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/32357ba8-9ea3-458e-a5c7-767944e4ca53
2025-03-17 02:27:40,571 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/6e9c4e65-7407-48e8-ad78-cee921383506
2025-03-17 02:27:40,578 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-17 02:27:40,579 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/c8c699af-843b-4634-bebd-87aea58abd41
2025-03-17 02:27:40,588 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/32357ba8-9ea3-458e-a5c7-767944e4ca53
2025-03-17 02:27:40,605 - INFO - Verified VN network id 8 for VN c8c699af-843b-4634-bebd-87aea58abd41
2025-03-17 02:27:40,605 - INFO - Verifications in API Server for VN ctest-vn-78903743 passed
2025-03-17 02:27:40,605 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/c8c699af-843b-4634-bebd-87aea58abd41
2025-03-17 02:27:40,616 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/32357ba8-9ea3-458e-a5c7-767944e4ca53
2025-03-17 02:27:40,624 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/32357ba8-9ea3-458e-a5c7-767944e4ca53
2025-03-17 02:27:40,631 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/6e9c4e65-7407-48e8-ad78-cee921383506
2025-03-17 02:27:40,646 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-78903743', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71007601', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14467419832091100724', 'uuid-lslong': '13744290821976014145'}, 'enable': 'true', 'created': '2025-03-17T02:27:38', 'last-modified': '2025-03-17T02:27:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008093'}
2025-03-17 02:27:40,653 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-17 02:27:40,653 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78903743 passed
2025-03-17 02:27:40,653 - DEBUG - ====Verifying policy data for ctest-vn-78903743 in API_Server ======
2025-03-17 02:27:40,653 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-17 02:27:40,660 - DEBUG - Requesting: http://10.0.0.46:8082/domain/cea3de82-6af3-458d-b61f-d5425465021f
2025-03-17 02:27:40,673 - DEBUG - Requesting: http://10.0.0.46:8082/project/9eee1c88-a348-48e4-a338-2517be87f523
2025-03-17 02:27:40,744 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/c8c699af-843b-4634-bebd-87aea58abd41
2025-03-17 02:27:40,755 - DEBUG - ==>Verifying data for policy with id: 97d26f9c-d0ca-4c96-90fd-523404db2e59, fqn: ['default-domain', 'ctest-TestBasicPolicy-71007601', 'ctest-policy-allow-all-75679254']
2025-03-17 02:27:40,756 - INFO - VN ctest-vn-78903743 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-17 02:27:40,756 - DEBUG - Verifying the vn in opserver
2025-03-17 02:27:40,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-78903743 virtual network link through opserver 10.0.0.46
2025-03-17 02:27:40,756 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-03-17 02:27:41,047 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-03-17 02:27:41,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-78903743', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-78903743?flat'}
2025-03-17 02:27:41,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-78903743 is found in opserver
2025-03-17 02:27:41,117 - DEBUG - Do not have enough data to verify VN in agent
2025-03-17 02:27:41,122 - DEBUG - VRF ids for VN ctest-vn-78903743: {}
2025-03-17 02:27:41,123 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-17 02:27:41,129 - DEBUG - Requesting: http://10.0.0.46:8082/domain/cea3de82-6af3-458d-b61f-d5425465021f
2025-03-17 02:27:41,143 - DEBUG - Requesting: http://10.0.0.46:8082/project/9eee1c88-a348-48e4-a338-2517be87f523
2025-03-17 02:27:41,221 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/afe33f94-6c38-470b-9f71-2068bc946d32
2025-03-17 02:27:41,235 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/afe33f94-6c38-470b-9f71-2068bc946d32
2025-03-17 02:27:41,247 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/07f4d004-b9ee-4fdf-98cb-f083efd480b9
2025-03-17 02:27:41,257 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/07f4d004-b9ee-4fdf-98cb-f083efd480b9
2025-03-17 02:27:41,265 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/3f61202e-b526-4e91-855d-5cdab7ceba9b
2025-03-17 02:27:41,275 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-17 02:27:41,275 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/afe33f94-6c38-470b-9f71-2068bc946d32
2025-03-17 02:27:41,286 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/07f4d004-b9ee-4fdf-98cb-f083efd480b9
2025-03-17 02:27:41,304 - INFO - Verified VN network id 9 for VN afe33f94-6c38-470b-9f71-2068bc946d32
2025-03-17 02:27:41,304 - INFO - Verifications in API Server for VN ctest-vn-35891480 passed
2025-03-17 02:27:41,304 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/afe33f94-6c38-470b-9f71-2068bc946d32
2025-03-17 02:27:41,316 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/07f4d004-b9ee-4fdf-98cb-f083efd480b9
2025-03-17 02:27:41,326 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/07f4d004-b9ee-4fdf-98cb-f083efd480b9
2025-03-17 02:27:41,333 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/3f61202e-b526-4e91-855d-5cdab7ceba9b
2025-03-17 02:27:41,348 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-35891480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71007601', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12674043683054044939', 'uuid-lslong': '11488999758611377458'}, 'enable': 'true', 'created': '2025-03-17T02:27:38', 'last-modified': '2025-03-17T02:27:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.440992'}
2025-03-17 02:27:41,357 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-17 02:27:41,357 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35891480 passed
2025-03-17 02:27:41,357 - DEBUG - ====Verifying policy data for ctest-vn-35891480 in API_Server ======
2025-03-17 02:27:41,358 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-03-17 02:27:41,364 - DEBUG - Requesting: http://10.0.0.46:8082/domain/cea3de82-6af3-458d-b61f-d5425465021f
2025-03-17 02:27:41,377 - DEBUG - Requesting: http://10.0.0.46:8082/project/9eee1c88-a348-48e4-a338-2517be87f523
2025-03-17 02:27:41,450 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/afe33f94-6c38-470b-9f71-2068bc946d32
2025-03-17 02:27:41,463 - DEBUG - ==>Verifying data for policy with id: 97d26f9c-d0ca-4c96-90fd-523404db2e59, fqn: ['default-domain', 'ctest-TestBasicPolicy-71007601', 'ctest-policy-allow-all-75679254']
2025-03-17 02:27:41,463 - INFO - VN ctest-vn-35891480 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-17 02:27:41,463 - DEBUG - Verifying the vn in opserver
2025-03-17 02:27:41,463 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-35891480 virtual network link through opserver 10.0.0.46
2025-03-17 02:27:41,463 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-03-17 02:27:41,474 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-35891480', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-35891480?flat'}
2025-03-17 02:27:41,475 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71007601:ctest-vn-35891480 is found in opserver
2025-03-17 02:27:41,486 - DEBUG - Do not have enough data to verify VN in agent
2025-03-17 02:27:41,492 - DEBUG - VRF ids for VN ctest-vn-35891480: {}
2025-03-17 02:27:41,562 - DEBUG - Services list from nova: [