2025-07-04 18:30:55,435 - INFO - Domain Default found not creating
2025-07-04 18:30:55,610 - INFO - Project ctest-TestBasicPolicy-93771559 not found, creating it
2025-07-04 18:30:56,110 - INFO - Created Project:ctest-TestBasicPolicy-93771559, ID : b15ef1b5-62ab-4756-b469-f53e96f47430
2025-07-04 18:30:57,637 - INFO - ================================================================================
2025-07-04 18:30:57,637 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-04 18:30:57,637 - 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-07-04 18:30:57,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-07-04 18:30:57,892 - INFO - Initial checks done. Running the testcase now
2025-07-04 18:30:57,892 - INFO -
2025-07-04 18:30:58,554 - DEBUG - Response for create_network : {'network': {'id': 'dda7ca7a-c8fe-47d7-8967-92e76c0ca674', 'name': 'ctest-vn-99551482', 'tenant_id': 'b15ef1b562ab4756b469f53e96f47430', 'project_id': 'b15ef1b562ab4756b469f53e96f47430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93771559', 'ctest-vn-99551482'], 'port_security_enabled': True, 'description': ''}}
2025-07-04 18:30:58,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ff22b72-a87b-4f05-a2c8-23e08f75a706', 'name': '', 'tenant_id': 'b15ef1b562ab4756b469f53e96f47430', 'network_id': 'dda7ca7a-c8fe-47d7-8967-92e76c0ca674', 'ip_version': 4, 'cidr': '147.128.237.0/26', 'allocation_pools': [{'start': '147.128.237.2', 'end': '147.128.237.62'}], 'gateway_ip': '147.128.237.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.128.237.2', 'tags': [], 'project_id': 'b15ef1b562ab4756b469f53e96f47430'}}
2025-07-04 18:30:58,751 - INFO - Created VN ctest-vn-99551482
2025-07-04 18:30:58,805 - DEBUG - VN ctest-vn-99551482 UUID is dda7ca7a-c8fe-47d7-8967-92e76c0ca674
2025-07-04 18:30:59,125 - DEBUG - Response for create_network : {'network': {'id': 'f6ec216d-c024-40b0-9b39-3cf88e32b371', 'name': 'ctest-vn-65512175', 'tenant_id': 'b15ef1b562ab4756b469f53e96f47430', 'project_id': 'b15ef1b562ab4756b469f53e96f47430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93771559', 'ctest-vn-65512175'], 'port_security_enabled': True, 'description': ''}}
2025-07-04 18:30:59,333 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4bfb050-01f1-4417-a06e-9128a32e62a9', 'name': '', 'tenant_id': 'b15ef1b562ab4756b469f53e96f47430', 'network_id': 'f6ec216d-c024-40b0-9b39-3cf88e32b371', 'ip_version': 4, 'cidr': '84.60.48.192/26', 'allocation_pools': [{'start': '84.60.48.194', 'end': '84.60.48.254'}], 'gateway_ip': '84.60.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.60.48.194', 'tags': [], 'project_id': 'b15ef1b562ab4756b469f53e96f47430'}}
2025-07-04 18:30:59,354 - INFO - Created VN ctest-vn-65512175
2025-07-04 18:30:59,405 - DEBUG - VN ctest-vn-65512175 UUID is f6ec216d-c024-40b0-9b39-3cf88e32b371
2025-07-04 18:30:59,528 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-99551482, 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-93771559:ctest-vn-65512175, 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-07-04 18:30:59,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dda7ca7a-c8fe-47d7-8967-92e76c0ca674', 'name': 'ctest-vn-99551482', 'tenant_id': 'b15ef1b562ab4756b469f53e96f47430', 'project_id': 'b15ef1b562ab4756b469f53e96f47430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ff22b72-a87b-4f05-a2c8-23e08f75a706'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93771559', 'ctest-vn-99551482'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93771559', 'ctest-policy-allow-all-71585721']], 'subnet_ipam': [{'subnet_cidr': '147.128.237.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-04 18:31:00,132 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6ec216d-c024-40b0-9b39-3cf88e32b371', 'name': 'ctest-vn-65512175', 'tenant_id': 'b15ef1b562ab4756b469f53e96f47430', 'project_id': 'b15ef1b562ab4756b469f53e96f47430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4bfb050-01f1-4417-a06e-9128a32e62a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93771559', 'ctest-vn-65512175'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93771559', 'ctest-policy-allow-all-71585721']], 'subnet_ipam': [{'subnet_cidr': '84.60.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-04 18:31:00,293 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-04 18:31:00,590 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-04 18:31:00,623 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3b07564d-cc2d-4b2a-b7d7-c3530595b906
2025-07-04 18:31:00,640 - DEBUG - Requesting: http://10.0.0.33:8082/project/b15ef1b5-62ab-4756-b469-f53e96f47430
2025-07-04 18:31:00,718 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dda7ca7a-c8fe-47d7-8967-92e76c0ca674
2025-07-04 18:31:00,732 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dda7ca7a-c8fe-47d7-8967-92e76c0ca674
2025-07-04 18:31:00,743 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e41a35bc-7a57-4ffb-bf80-8e2e96328f9f
2025-07-04 18:31:00,753 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e41a35bc-7a57-4ffb-bf80-8e2e96328f9f
2025-07-04 18:31:00,762 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/334f62e0-58ec-4dad-9a4e-2942cf3a4dfb
2025-07-04 18:31:00,771 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-04 18:31:00,771 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dda7ca7a-c8fe-47d7-8967-92e76c0ca674
2025-07-04 18:31:00,784 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e41a35bc-7a57-4ffb-bf80-8e2e96328f9f
2025-07-04 18:31:00,803 - INFO - Verified VN network id 8 for VN dda7ca7a-c8fe-47d7-8967-92e76c0ca674
2025-07-04 18:31:00,804 - INFO - Verifications in API Server for VN ctest-vn-99551482 passed
2025-07-04 18:31:00,804 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dda7ca7a-c8fe-47d7-8967-92e76c0ca674
2025-07-04 18:31:00,814 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e41a35bc-7a57-4ffb-bf80-8e2e96328f9f
2025-07-04 18:31:00,823 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e41a35bc-7a57-4ffb-bf80-8e2e96328f9f
2025-07-04 18:31:00,832 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/334f62e0-58ec-4dad-9a4e-2942cf3a4dfb
2025-07-04 18:31:00,850 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-99551482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93771559', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15971957232199682007', 'uuid-lslong': '9901043828445193844'}, 'enable': 'true', 'created': '2025-07-04T18:30:58', 'last-modified': '2025-07-04T18:30:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030403'}
2025-07-04 18:31:00,859 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-04 18:31:00,859 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99551482 passed
2025-07-04 18:31:00,859 - DEBUG - ====Verifying policy data for ctest-vn-99551482 in API_Server ======
2025-07-04 18:31:00,859 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-04 18:31:00,868 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3b07564d-cc2d-4b2a-b7d7-c3530595b906
2025-07-04 18:31:00,884 - DEBUG - Requesting: http://10.0.0.33:8082/project/b15ef1b5-62ab-4756-b469-f53e96f47430
2025-07-04 18:31:00,960 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dda7ca7a-c8fe-47d7-8967-92e76c0ca674
2025-07-04 18:31:00,972 - DEBUG - ==>Verifying data for policy with id: 838bba8b-74f3-4046-a121-815083647dc3, fqn: ['default-domain', 'ctest-TestBasicPolicy-93771559', 'ctest-policy-allow-all-71585721']
2025-07-04 18:31:00,972 - INFO - VN ctest-vn-99551482 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-04 18:31:00,972 - DEBUG - Verifying the vn in opserver
2025-07-04 18:31:00,972 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-99551482 virtual network link through opserver 10.0.0.33
2025-07-04 18:31:00,972 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-04 18:31:01,277 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-04 18:31:01,346 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-99551482', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-99551482?flat'}
2025-07-04 18:31:01,346 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-99551482 is found in opserver
2025-07-04 18:31:01,359 - DEBUG - Do not have enough data to verify VN in agent
2025-07-04 18:31:01,365 - DEBUG - VRF ids for VN ctest-vn-99551482: {}
2025-07-04 18:31:01,365 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-04 18:31:01,374 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3b07564d-cc2d-4b2a-b7d7-c3530595b906
2025-07-04 18:31:01,388 - DEBUG - Requesting: http://10.0.0.33:8082/project/b15ef1b5-62ab-4756-b469-f53e96f47430
2025-07-04 18:31:01,475 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6ec216d-c024-40b0-9b39-3cf88e32b371
2025-07-04 18:31:01,488 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6ec216d-c024-40b0-9b39-3cf88e32b371
2025-07-04 18:31:01,501 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21b983bf-d24e-4ab7-b038-58e026da5a80
2025-07-04 18:31:01,511 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21b983bf-d24e-4ab7-b038-58e026da5a80
2025-07-04 18:31:01,521 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/54043d9b-df2f-47d4-bb56-6ece0fb06415
2025-07-04 18:31:01,529 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-04 18:31:01,529 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6ec216d-c024-40b0-9b39-3cf88e32b371
2025-07-04 18:31:01,539 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21b983bf-d24e-4ab7-b038-58e026da5a80
2025-07-04 18:31:01,556 - INFO - Verified VN network id 9 for VN f6ec216d-c024-40b0-9b39-3cf88e32b371
2025-07-04 18:31:01,556 - INFO - Verifications in API Server for VN ctest-vn-65512175 passed
2025-07-04 18:31:01,557 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6ec216d-c024-40b0-9b39-3cf88e32b371
2025-07-04 18:31:01,567 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21b983bf-d24e-4ab7-b038-58e026da5a80
2025-07-04 18:31:01,577 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21b983bf-d24e-4ab7-b038-58e026da5a80
2025-07-04 18:31:01,586 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/54043d9b-df2f-47d4-bb56-6ece0fb06415
2025-07-04 18:31:01,603 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-65512175', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93771559', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17792632983092740272', 'uuid-lslong': '11185038187786580849'}, 'enable': 'true', 'created': '2025-07-04T18:30:59', 'last-modified': '2025-07-04T18:31:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540988'}
2025-07-04 18:31:01,610 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-04 18:31:01,610 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65512175 passed
2025-07-04 18:31:01,610 - DEBUG - ====Verifying policy data for ctest-vn-65512175 in API_Server ======
2025-07-04 18:31:01,610 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-04 18:31:01,617 - DEBUG - Requesting: http://10.0.0.33:8082/domain/3b07564d-cc2d-4b2a-b7d7-c3530595b906
2025-07-04 18:31:01,633 - DEBUG - Requesting: http://10.0.0.33:8082/project/b15ef1b5-62ab-4756-b469-f53e96f47430
2025-07-04 18:31:01,733 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f6ec216d-c024-40b0-9b39-3cf88e32b371
2025-07-04 18:31:01,746 - DEBUG - ==>Verifying data for policy with id: 838bba8b-74f3-4046-a121-815083647dc3, fqn: ['default-domain', 'ctest-TestBasicPolicy-93771559', 'ctest-policy-allow-all-71585721']
2025-07-04 18:31:01,746 - INFO - VN ctest-vn-65512175 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-04 18:31:01,746 - DEBUG - Verifying the vn in opserver
2025-07-04 18:31:01,746 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-65512175 virtual network link through opserver 10.0.0.33
2025-07-04 18:31:01,746 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-04 18:31:01,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-65512175', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-65512175?flat'}
2025-07-04 18:31:01,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93771559:ctest-vn-65512175 is found in opserver
2025-07-04 18:31:01,775 - DEBUG - Do not have enough data to verify VN in agent
2025-07-04 18:31:01,781 - DEBUG - VRF ids for VN ctest-vn-65512175: {}
2025-07-04 18:31:01,847 - DEBUG - Services list from nova: [