2025-02-20 02:15:48,690 - INFO - Domain Default found not creating
2025-02-20 02:15:48,847 - INFO - Project ctest-TestBasicPolicy-44703487 not found, creating it
2025-02-20 02:15:49,326 - INFO - Created Project:ctest-TestBasicPolicy-44703487, ID : 1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde
2025-02-20 02:15:50,924 - INFO - ================================================================================
2025-02-20 02:15:50,924 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-20 02:15:50,924 - 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-02-20 02:15:51,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.0.0.47': '0'}} with
2025-02-20 02:15:51,180 - INFO - Initial checks done. Running the testcase now
2025-02-20 02:15:51,180 - INFO -
2025-02-20 02:15:51,777 - DEBUG - Response for create_network : {'network': {'id': '57f6c62d-fe32-4a97-aefc-19c68ad0b7cd', 'name': 'ctest-vn-20847064', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-vn-20847064'], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:15:51,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '262ffdee-f4ce-4179-8aec-09dd27745d55', 'name': '', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'network_id': '57f6c62d-fe32-4a97-aefc-19c68ad0b7cd', 'ip_version': 4, 'cidr': '30.184.117.0/26', 'allocation_pools': [{'start': '30.184.117.2', 'end': '30.184.117.62'}], 'gateway_ip': '30.184.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.184.117.2', 'tags': [], 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde'}}
2025-02-20 02:15:51,990 - INFO - Created VN ctest-vn-20847064
2025-02-20 02:15:52,042 - DEBUG - VN ctest-vn-20847064 UUID is 57f6c62d-fe32-4a97-aefc-19c68ad0b7cd
2025-02-20 02:15:52,344 - DEBUG - Response for create_network : {'network': {'id': 'ba6f2313-d925-4524-ada6-e987af9fde63', 'name': 'ctest-vn-42991682', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-vn-42991682'], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:15:52,501 - DEBUG - Response for create_subnet : {'subnet': {'id': '43edc6ac-499e-47a5-b14a-02022806225b', 'name': '', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'network_id': 'ba6f2313-d925-4524-ada6-e987af9fde63', 'ip_version': 4, 'cidr': '22.119.62.128/26', 'allocation_pools': [{'start': '22.119.62.130', 'end': '22.119.62.190'}], 'gateway_ip': '22.119.62.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.119.62.130', 'tags': [], 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde'}}
2025-02-20 02:15:52,520 - INFO - Created VN ctest-vn-42991682
2025-02-20 02:15:52,574 - DEBUG - VN ctest-vn-42991682 UUID is ba6f2313-d925-4524-ada6-e987af9fde63
2025-02-20 02:15:52,693 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064, 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-44703487:ctest-vn-42991682, 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-02-20 02:15:53,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57f6c62d-fe32-4a97-aefc-19c68ad0b7cd', 'name': 'ctest-vn-20847064', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['262ffdee-f4ce-4179-8aec-09dd27745d55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-vn-20847064'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-policy-allow-all-72717143']], 'subnet_ipam': [{'subnet_cidr': '30.184.117.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:15:53,251 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba6f2313-d925-4524-ada6-e987af9fde63', 'name': 'ctest-vn-42991682', 'tenant_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'project_id': '1e7c122d0bd748abb9c8ac87d72d3cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43edc6ac-499e-47a5-b14a-02022806225b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-vn-42991682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-policy-allow-all-72717143']], 'subnet_ipam': [{'subnet_cidr': '22.119.62.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-20 02:15:53,430 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-20 02:15:53,762 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-20 02:15:53,793 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b
2025-02-20 02:15:53,809 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde
2025-02-20 02:15:53,886 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd
2025-02-20 02:15:53,901 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd
2025-02-20 02:15:53,913 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659
2025-02-20 02:15:53,923 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659
2025-02-20 02:15:53,931 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/68433605-710f-4aa0-9812-cab5190329a4
2025-02-20 02:15:53,940 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-20 02:15:53,940 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd
2025-02-20 02:15:53,952 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659
2025-02-20 02:15:53,968 - INFO - Verified VN network id 9 for VN 57f6c62d-fe32-4a97-aefc-19c68ad0b7cd
2025-02-20 02:15:53,969 - INFO - Verifications in API Server for VN ctest-vn-20847064 passed
2025-02-20 02:15:53,969 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd
2025-02-20 02:15:53,980 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659
2025-02-20 02:15:53,988 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/fa30d420-0526-4283-965d-a44dc17ce659
2025-02-20 02:15:53,998 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/68433605-710f-4aa0-9812-cab5190329a4
2025-02-20 02:15:54,013 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44703487', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6338471426411088535', 'uuid-lslong': '12608981397253699533'}, 'enable': 'true', 'created': '2025-02-20T02:15:51', 'last-modified': '2025-02-20T02:15:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037757'}
2025-02-20 02:15:54,021 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-20 02:15:54,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20847064 passed
2025-02-20 02:15:54,021 - DEBUG - ====Verifying policy data for ctest-vn-20847064 in API_Server ======
2025-02-20 02:15:54,021 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-20 02:15:54,028 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b
2025-02-20 02:15:54,044 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde
2025-02-20 02:15:54,122 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/57f6c62d-fe32-4a97-aefc-19c68ad0b7cd
2025-02-20 02:15:54,133 - DEBUG - ==>Verifying data for policy with id: 46a5dbe0-ddfe-4c98-9e1c-49ab0272b56b, fqn: ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-policy-allow-all-72717143']
2025-02-20 02:15:54,133 - INFO - VN ctest-vn-20847064 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-20 02:15:54,133 - DEBUG - Verifying the vn in opserver
2025-02-20 02:15:54,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064 virtual network link through opserver 10.0.0.47
2025-02-20 02:15:54,134 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-02-20 02:15:54,465 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-02-20 02:15:54,523 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064?flat'}
2025-02-20 02:15:54,523 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-20847064 is found in opserver
2025-02-20 02:15:54,535 - DEBUG - Do not have enough data to verify VN in agent
2025-02-20 02:15:54,540 - DEBUG - VRF ids for VN ctest-vn-20847064: {}
2025-02-20 02:15:54,541 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-20 02:15:54,547 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b
2025-02-20 02:15:54,562 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde
2025-02-20 02:15:54,638 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63
2025-02-20 02:15:54,652 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63
2025-02-20 02:15:54,663 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e
2025-02-20 02:15:54,672 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e
2025-02-20 02:15:54,679 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/3e8dc977-1647-4bef-a97d-426ead32a5c3
2025-02-20 02:15:54,686 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-20 02:15:54,686 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63
2025-02-20 02:15:54,697 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e
2025-02-20 02:15:54,712 - INFO - Verified VN network id 10 for VN ba6f2313-d925-4524-ada6-e987af9fde63
2025-02-20 02:15:54,712 - INFO - Verifications in API Server for VN ctest-vn-42991682 passed
2025-02-20 02:15:54,712 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63
2025-02-20 02:15:54,722 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e
2025-02-20 02:15:54,730 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/12fd4815-ecc9-494b-9ff6-bcc0da72463e
2025-02-20 02:15:54,738 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/3e8dc977-1647-4bef-a97d-426ead32a5c3
2025-02-20 02:15:54,750 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44703487', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13433994781623928100', 'uuid-lslong': '12512945383671848547'}, 'enable': 'true', 'created': '2025-02-20T02:15:52', 'last-modified': '2025-02-20T02:15:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.524911'}
2025-02-20 02:15:54,757 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-20 02:15:54,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42991682 passed
2025-02-20 02:15:54,757 - DEBUG - ====Verifying policy data for ctest-vn-42991682 in API_Server ======
2025-02-20 02:15:54,757 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-02-20 02:15:54,763 - DEBUG - Requesting: http://10.0.0.47:8082/domain/d9cb6f26-cf54-4ed1-b983-592dbb4d899b
2025-02-20 02:15:54,775 - DEBUG - Requesting: http://10.0.0.47:8082/project/1e7c122d-0bd7-48ab-b9c8-ac87d72d3cde
2025-02-20 02:15:54,856 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ba6f2313-d925-4524-ada6-e987af9fde63
2025-02-20 02:15:54,869 - DEBUG - ==>Verifying data for policy with id: 46a5dbe0-ddfe-4c98-9e1c-49ab0272b56b, fqn: ['default-domain', 'ctest-TestBasicPolicy-44703487', 'ctest-policy-allow-all-72717143']
2025-02-20 02:15:54,870 - INFO - VN ctest-vn-42991682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-20 02:15:54,870 - DEBUG - Verifying the vn in opserver
2025-02-20 02:15:54,870 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682 virtual network link through opserver 10.0.0.47
2025-02-20 02:15:54,870 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-02-20 02:15:54,881 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682?flat'}
2025-02-20 02:15:54,881 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44703487:ctest-vn-42991682 is found in opserver
2025-02-20 02:15:54,893 - DEBUG - Do not have enough data to verify VN in agent
2025-02-20 02:15:54,898 - DEBUG - VRF ids for VN ctest-vn-42991682: {}
2025-02-20 02:15:54,962 - DEBUG - Services list from nova: [