2025-04-19 08:28:42,916 - INFO - Domain Default found not creating
2025-04-19 08:28:43,084 - INFO - Project ctest-TestBasicPolicy-44908968 not found, creating it
2025-04-19 08:28:43,542 - INFO - Created Project:ctest-TestBasicPolicy-44908968, ID : 3625568a-aa42-43ac-97e6-7cc1c792357b
2025-04-19 08:28:44,976 - INFO - ================================================================================
2025-04-19 08:28:44,976 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-19 08:28:44,976 - 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-19 08:28:45,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-19 08:28:45,236 - INFO - Initial checks done. Running the testcase now
2025-04-19 08:28:45,236 - INFO -
2025-04-19 08:28:45,788 - DEBUG - Response for create_network : {'network': {'id': 'f5372452-b8fa-4481-8b2c-52266c20539f', 'name': 'ctest-vn-43262728', 'tenant_id': '3625568aaa4243ac97e67cc1c792357b', 'project_id': '3625568aaa4243ac97e67cc1c792357b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44908968', 'ctest-vn-43262728'], 'port_security_enabled': True, 'description': ''}}
2025-04-19 08:28:45,961 - DEBUG - Response for create_subnet : {'subnet': {'id': '311c1a58-d312-4589-b78a-3162424b69d0', 'name': '', 'tenant_id': '3625568aaa4243ac97e67cc1c792357b', 'network_id': 'f5372452-b8fa-4481-8b2c-52266c20539f', 'ip_version': 4, 'cidr': '207.197.11.0/26', 'allocation_pools': [{'start': '207.197.11.2', 'end': '207.197.11.62'}], 'gateway_ip': '207.197.11.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.197.11.2', 'tags': [], 'project_id': '3625568aaa4243ac97e67cc1c792357b'}}
2025-04-19 08:28:45,979 - INFO - Created VN ctest-vn-43262728
2025-04-19 08:28:46,031 - DEBUG - VN ctest-vn-43262728 UUID is f5372452-b8fa-4481-8b2c-52266c20539f
2025-04-19 08:28:46,362 - DEBUG - Response for create_network : {'network': {'id': 'f1e9b2ef-f1b3-4994-b4e7-b651cb49a484', 'name': 'ctest-vn-65464569', 'tenant_id': '3625568aaa4243ac97e67cc1c792357b', 'project_id': '3625568aaa4243ac97e67cc1c792357b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44908968', 'ctest-vn-65464569'], 'port_security_enabled': True, 'description': ''}}
2025-04-19 08:28:46,553 - DEBUG - Response for create_subnet : {'subnet': {'id': '66f6f41f-f21c-4035-8e51-16da3f8456a3', 'name': '', 'tenant_id': '3625568aaa4243ac97e67cc1c792357b', 'network_id': 'f1e9b2ef-f1b3-4994-b4e7-b651cb49a484', 'ip_version': 4, 'cidr': '20.240.184.192/26', 'allocation_pools': [{'start': '20.240.184.194', 'end': '20.240.184.254'}], 'gateway_ip': '20.240.184.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.240.184.194', 'tags': [], 'project_id': '3625568aaa4243ac97e67cc1c792357b'}}
2025-04-19 08:28:46,572 - INFO - Created VN ctest-vn-65464569
2025-04-19 08:28:46,623 - DEBUG - VN ctest-vn-65464569 UUID is f1e9b2ef-f1b3-4994-b4e7-b651cb49a484
2025-04-19 08:28:46,735 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-43262728, 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-44908968:ctest-vn-65464569, 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-19 08:28:47,030 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5372452-b8fa-4481-8b2c-52266c20539f', 'name': 'ctest-vn-43262728', 'tenant_id': '3625568aaa4243ac97e67cc1c792357b', 'project_id': '3625568aaa4243ac97e67cc1c792357b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['311c1a58-d312-4589-b78a-3162424b69d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44908968', 'ctest-vn-43262728'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44908968', 'ctest-policy-allow-all-66804486']], 'subnet_ipam': [{'subnet_cidr': '207.197.11.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-19 08:28:47,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1e9b2ef-f1b3-4994-b4e7-b651cb49a484', 'name': 'ctest-vn-65464569', 'tenant_id': '3625568aaa4243ac97e67cc1c792357b', 'project_id': '3625568aaa4243ac97e67cc1c792357b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['66f6f41f-f21c-4035-8e51-16da3f8456a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44908968', 'ctest-vn-65464569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44908968', 'ctest-policy-allow-all-66804486']], 'subnet_ipam': [{'subnet_cidr': '20.240.184.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-19 08:28:47,443 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-19 08:28:47,737 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-19 08:28:47,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a54e8dd-4cae-47d6-8878-656ed31727a6
2025-04-19 08:28:47,780 - DEBUG - Requesting: http://10.0.0.38:8082/project/3625568a-aa42-43ac-97e6-7cc1c792357b
2025-04-19 08:28:47,858 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5372452-b8fa-4481-8b2c-52266c20539f
2025-04-19 08:28:47,870 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5372452-b8fa-4481-8b2c-52266c20539f
2025-04-19 08:28:47,882 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e6413f19-c4ff-4506-ac57-afb80dbbc9e9
2025-04-19 08:28:47,891 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e6413f19-c4ff-4506-ac57-afb80dbbc9e9
2025-04-19 08:28:47,898 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ea1070e9-cb13-46a0-9fca-e333c1829561
2025-04-19 08:28:47,905 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-19 08:28:47,905 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5372452-b8fa-4481-8b2c-52266c20539f
2025-04-19 08:28:47,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e6413f19-c4ff-4506-ac57-afb80dbbc9e9
2025-04-19 08:28:47,930 - INFO - Verified VN network id 8 for VN f5372452-b8fa-4481-8b2c-52266c20539f
2025-04-19 08:28:47,930 - INFO - Verifications in API Server for VN ctest-vn-43262728 passed
2025-04-19 08:28:47,931 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5372452-b8fa-4481-8b2c-52266c20539f
2025-04-19 08:28:47,941 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e6413f19-c4ff-4506-ac57-afb80dbbc9e9
2025-04-19 08:28:47,948 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e6413f19-c4ff-4506-ac57-afb80dbbc9e9
2025-04-19 08:28:47,956 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ea1070e9-cb13-46a0-9fca-e333c1829561
2025-04-19 08:28:47,969 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-43262728', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44908968', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17669631600720757889', 'uuid-lslong': '10028480795223544735'}, 'enable': 'true', 'created': '2025-04-19T08:28:45', 'last-modified': '2025-04-19T08:28:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964217'}
2025-04-19 08:28:47,976 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-19 08:28:47,976 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43262728 passed
2025-04-19 08:28:47,976 - DEBUG - ====Verifying policy data for ctest-vn-43262728 in API_Server ======
2025-04-19 08:28:47,976 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-19 08:28:47,984 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a54e8dd-4cae-47d6-8878-656ed31727a6
2025-04-19 08:28:47,996 - DEBUG - Requesting: http://10.0.0.38:8082/project/3625568a-aa42-43ac-97e6-7cc1c792357b
2025-04-19 08:28:48,070 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f5372452-b8fa-4481-8b2c-52266c20539f
2025-04-19 08:28:48,081 - DEBUG - ==>Verifying data for policy with id: 26d40ec3-b022-44f1-b55e-9b4ab9f2996f, fqn: ['default-domain', 'ctest-TestBasicPolicy-44908968', 'ctest-policy-allow-all-66804486']
2025-04-19 08:28:48,081 - INFO - VN ctest-vn-43262728 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-19 08:28:48,081 - DEBUG - Verifying the vn in opserver
2025-04-19 08:28:48,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-43262728 virtual network link through opserver 10.0.0.38
2025-04-19 08:28:48,081 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-19 08:28:48,372 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-19 08:28:48,427 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-43262728', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-43262728?flat'}
2025-04-19 08:28:48,428 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-43262728 is found in opserver
2025-04-19 08:28:48,439 - DEBUG - Do not have enough data to verify VN in agent
2025-04-19 08:28:48,445 - DEBUG - VRF ids for VN ctest-vn-43262728: {}
2025-04-19 08:28:48,445 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-19 08:28:48,451 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a54e8dd-4cae-47d6-8878-656ed31727a6
2025-04-19 08:28:48,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/3625568a-aa42-43ac-97e6-7cc1c792357b
2025-04-19 08:28:48,534 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1e9b2ef-f1b3-4994-b4e7-b651cb49a484
2025-04-19 08:28:48,547 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1e9b2ef-f1b3-4994-b4e7-b651cb49a484
2025-04-19 08:28:48,559 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce51b925-cb5a-40a2-97c7-5747794a807b
2025-04-19 08:28:48,567 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce51b925-cb5a-40a2-97c7-5747794a807b
2025-04-19 08:28:48,574 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8d7c6af2-574d-43ba-9565-0d5bfd2a478d
2025-04-19 08:28:48,581 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-19 08:28:48,581 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1e9b2ef-f1b3-4994-b4e7-b651cb49a484
2025-04-19 08:28:48,590 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce51b925-cb5a-40a2-97c7-5747794a807b
2025-04-19 08:28:48,604 - INFO - Verified VN network id 9 for VN f1e9b2ef-f1b3-4994-b4e7-b651cb49a484
2025-04-19 08:28:48,604 - INFO - Verifications in API Server for VN ctest-vn-65464569 passed
2025-04-19 08:28:48,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1e9b2ef-f1b3-4994-b4e7-b651cb49a484
2025-04-19 08:28:48,613 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce51b925-cb5a-40a2-97c7-5747794a807b
2025-04-19 08:28:48,620 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce51b925-cb5a-40a2-97c7-5747794a807b
2025-04-19 08:28:48,627 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8d7c6af2-574d-43ba-9565-0d5bfd2a478d
2025-04-19 08:28:48,639 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-65464569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44908968', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17431660576336202132', 'uuid-lslong': '13035588108866397316'}, 'enable': 'true', 'created': '2025-04-19T08:28:46', 'last-modified': '2025-04-19T08:28:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.397011'}
2025-04-19 08:28:48,646 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-19 08:28:48,646 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65464569 passed
2025-04-19 08:28:48,646 - DEBUG - ====Verifying policy data for ctest-vn-65464569 in API_Server ======
2025-04-19 08:28:48,646 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-19 08:28:48,652 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a54e8dd-4cae-47d6-8878-656ed31727a6
2025-04-19 08:28:48,663 - DEBUG - Requesting: http://10.0.0.38:8082/project/3625568a-aa42-43ac-97e6-7cc1c792357b
2025-04-19 08:28:48,737 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1e9b2ef-f1b3-4994-b4e7-b651cb49a484
2025-04-19 08:28:48,747 - DEBUG - ==>Verifying data for policy with id: 26d40ec3-b022-44f1-b55e-9b4ab9f2996f, fqn: ['default-domain', 'ctest-TestBasicPolicy-44908968', 'ctest-policy-allow-all-66804486']
2025-04-19 08:28:48,747 - INFO - VN ctest-vn-65464569 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-19 08:28:48,747 - DEBUG - Verifying the vn in opserver
2025-04-19 08:28:48,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-65464569 virtual network link through opserver 10.0.0.38
2025-04-19 08:28:48,747 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-19 08:28:48,757 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-65464569', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-65464569?flat'}
2025-04-19 08:28:48,757 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44908968:ctest-vn-65464569 is found in opserver
2025-04-19 08:28:48,767 - DEBUG - Do not have enough data to verify VN in agent
2025-04-19 08:28:48,773 - DEBUG - VRF ids for VN ctest-vn-65464569: {}
2025-04-19 08:28:48,828 - DEBUG - Services list from nova: [