2025-03-20 02:21:18,097 - INFO - Domain Default found not creating
2025-03-20 02:21:18,254 - INFO - Project ctest-TestBasicPolicy-77966589 not found, creating it
2025-03-20 02:21:18,690 - INFO - Created Project:ctest-TestBasicPolicy-77966589, ID : cc6ca59d-94f2-493a-9c46-a2b93ebd818a
2025-03-20 02:21:20,065 - INFO - ================================================================================
2025-03-20 02:21:20,065 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-20 02:21:20,065 - 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-20 02:21:20,324 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.30': '0'}} with
2025-03-20 02:21:20,324 - INFO - Initial checks done. Running the testcase now
2025-03-20 02:21:20,324 - INFO -
2025-03-20 02:21:20,857 - DEBUG - Response for create_network : {'network': {'id': 'b60f4d81-1c28-4b15-92c7-fff4c96c256f', 'name': 'ctest-vn-99711706', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-vn-99711706'], 'port_security_enabled': True, 'description': ''}}
2025-03-20 02:21:21,006 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6e23889-119b-4765-b3a6-e831054b6b1e', 'name': '', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'network_id': 'b60f4d81-1c28-4b15-92c7-fff4c96c256f', 'ip_version': 4, 'cidr': '111.98.67.0/26', 'allocation_pools': [{'start': '111.98.67.2', 'end': '111.98.67.62'}], 'gateway_ip': '111.98.67.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.98.67.2', 'tags': [], 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a'}}
2025-03-20 02:21:21,022 - INFO - Created VN ctest-vn-99711706
2025-03-20 02:21:21,073 - DEBUG - VN ctest-vn-99711706 UUID is b60f4d81-1c28-4b15-92c7-fff4c96c256f
2025-03-20 02:21:21,348 - DEBUG - Response for create_network : {'network': {'id': '871d9d4d-51e8-466a-90a3-2edbdbbc3223', 'name': 'ctest-vn-76141302', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-vn-76141302'], 'port_security_enabled': True, 'description': ''}}
2025-03-20 02:21:21,575 - DEBUG - Response for create_subnet : {'subnet': {'id': '1209e2d7-174c-4e15-aac1-a63c41d694b7', 'name': '', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'network_id': '871d9d4d-51e8-466a-90a3-2edbdbbc3223', 'ip_version': 4, 'cidr': '12.222.218.64/26', 'allocation_pools': [{'start': '12.222.218.66', 'end': '12.222.218.126'}], 'gateway_ip': '12.222.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.222.218.66', 'tags': [], 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a'}}
2025-03-20 02:21:21,593 - INFO - Created VN ctest-vn-76141302
2025-03-20 02:21:21,645 - DEBUG - VN ctest-vn-76141302 UUID is 871d9d4d-51e8-466a-90a3-2edbdbbc3223
2025-03-20 02:21:21,793 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706, 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-77966589:ctest-vn-76141302, 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-20 02:21:22,100 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b60f4d81-1c28-4b15-92c7-fff4c96c256f', 'name': 'ctest-vn-99711706', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6e23889-119b-4765-b3a6-e831054b6b1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-vn-99711706'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-policy-allow-all-05273521']], 'subnet_ipam': [{'subnet_cidr': '111.98.67.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-20 02:21:22,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '871d9d4d-51e8-466a-90a3-2edbdbbc3223', 'name': 'ctest-vn-76141302', 'tenant_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'project_id': 'cc6ca59d94f2493a9c46a2b93ebd818a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1209e2d7-174c-4e15-aac1-a63c41d694b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-vn-76141302'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-policy-allow-all-05273521']], 'subnet_ipam': [{'subnet_cidr': '12.222.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-20 02:21:22,481 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-20 02:21:22,786 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-20 02:21:22,811 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663
2025-03-20 02:21:22,823 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a
2025-03-20 02:21:22,899 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f
2025-03-20 02:21:22,909 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f
2025-03-20 02:21:22,918 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a
2025-03-20 02:21:22,924 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a
2025-03-20 02:21:22,930 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4c20d516-47bf-4c9f-bafc-f37db73090f2
2025-03-20 02:21:22,936 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-20 02:21:22,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f
2025-03-20 02:21:22,945 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a
2025-03-20 02:21:22,960 - INFO - Verified VN network id 9 for VN b60f4d81-1c28-4b15-92c7-fff4c96c256f
2025-03-20 02:21:22,960 - INFO - Verifications in API Server for VN ctest-vn-99711706 passed
2025-03-20 02:21:22,960 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f
2025-03-20 02:21:22,970 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a
2025-03-20 02:21:22,977 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/20467624-6a47-4789-9eb9-4e6d30e27b7a
2025-03-20 02:21:22,985 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4c20d516-47bf-4c9f-bafc-f37db73090f2
2025-03-20 02:21:22,999 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77966589', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13118789456472066837', 'uuid-lslong': '10576703676719310191'}, 'enable': 'true', 'created': '2025-03-20T02:21:20', 'last-modified': '2025-03-20T02:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.925974'}
2025-03-20 02:21:23,006 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-20 02:21:23,006 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99711706 passed
2025-03-20 02:21:23,006 - DEBUG - ====Verifying policy data for ctest-vn-99711706 in API_Server ======
2025-03-20 02:21:23,006 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-20 02:21:23,012 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663
2025-03-20 02:21:23,026 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a
2025-03-20 02:21:23,095 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b60f4d81-1c28-4b15-92c7-fff4c96c256f
2025-03-20 02:21:23,104 - DEBUG - ==>Verifying data for policy with id: 9d4a68b2-ac7f-40a6-b74a-2a1606b5ad23, fqn: ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-policy-allow-all-05273521']
2025-03-20 02:21:23,105 - INFO - VN ctest-vn-99711706 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-20 02:21:23,105 - DEBUG - Verifying the vn in opserver
2025-03-20 02:21:23,105 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706 virtual network link through opserver 10.0.0.33
2025-03-20 02:21:23,105 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-20 02:21:23,398 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-20 02:21:23,445 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706?flat'}
2025-03-20 02:21:23,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-99711706 is found in opserver
2025-03-20 02:21:23,456 - DEBUG - Do not have enough data to verify VN in agent
2025-03-20 02:21:23,460 - DEBUG - VRF ids for VN ctest-vn-99711706: {}
2025-03-20 02:21:23,461 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-20 02:21:23,466 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663
2025-03-20 02:21:23,477 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a
2025-03-20 02:21:23,547 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223
2025-03-20 02:21:23,561 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223
2025-03-20 02:21:23,572 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22
2025-03-20 02:21:23,579 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22
2025-03-20 02:21:23,585 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7415e541-92da-492a-adaf-030350787d15
2025-03-20 02:21:23,590 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-20 02:21:23,590 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223
2025-03-20 02:21:23,599 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22
2025-03-20 02:21:23,610 - INFO - Verified VN network id 10 for VN 871d9d4d-51e8-466a-90a3-2edbdbbc3223
2025-03-20 02:21:23,611 - INFO - Verifications in API Server for VN ctest-vn-76141302 passed
2025-03-20 02:21:23,611 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223
2025-03-20 02:21:23,620 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22
2025-03-20 02:21:23,626 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1edaa4fd-6029-4265-a278-fed477d67f22
2025-03-20 02:21:23,632 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7415e541-92da-492a-adaf-030350787d15
2025-03-20 02:21:23,643 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77966589', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9736110924857099882', 'uuid-lslong': '10422225484484719139'}, 'enable': 'true', 'created': '2025-03-20T02:21:21', 'last-modified': '2025-03-20T02:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333850'}
2025-03-20 02:21:23,649 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-20 02:21:23,650 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76141302 passed
2025-03-20 02:21:23,650 - DEBUG - ====Verifying policy data for ctest-vn-76141302 in API_Server ======
2025-03-20 02:21:23,650 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-20 02:21:23,655 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6eaf8ff3-2829-4235-aaa0-9c4b248d6663
2025-03-20 02:21:23,666 - DEBUG - Requesting: http://10.0.0.33:8082/project/cc6ca59d-94f2-493a-9c46-a2b93ebd818a
2025-03-20 02:21:23,735 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/871d9d4d-51e8-466a-90a3-2edbdbbc3223
2025-03-20 02:21:23,745 - DEBUG - ==>Verifying data for policy with id: 9d4a68b2-ac7f-40a6-b74a-2a1606b5ad23, fqn: ['default-domain', 'ctest-TestBasicPolicy-77966589', 'ctest-policy-allow-all-05273521']
2025-03-20 02:21:23,745 - INFO - VN ctest-vn-76141302 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-20 02:21:23,745 - DEBUG - Verifying the vn in opserver
2025-03-20 02:21:23,745 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302 virtual network link through opserver 10.0.0.33
2025-03-20 02:21:23,745 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-20 02:21:23,755 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302?flat'}
2025-03-20 02:21:23,755 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77966589:ctest-vn-76141302 is found in opserver
2025-03-20 02:21:23,765 - DEBUG - Do not have enough data to verify VN in agent
2025-03-20 02:21:23,770 - DEBUG - VRF ids for VN ctest-vn-76141302: {}
2025-03-20 02:21:23,822 - DEBUG - Services list from nova: [