2025-02-19 18:06:02,341 - INFO - Domain Default found not creating
2025-02-19 18:06:02,546 - INFO - Project ctest-TestBasicPolicy-19217275 not found, creating it
2025-02-19 18:06:03,039 - INFO - Created Project:ctest-TestBasicPolicy-19217275, ID : a3488419-c411-4258-820c-b7122b935416
2025-02-19 18:06:04,592 - INFO - ================================================================================
2025-02-19 18:06:04,592 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-19 18:06:04,593 - 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-19 18:06:04,859 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.10': '0'}} with
2025-02-19 18:06:04,859 - INFO - Initial checks done. Running the testcase now
2025-02-19 18:06:04,859 - INFO -
2025-02-19 18:06:05,458 - DEBUG - Response for create_network : {'network': {'id': 'd0483b15-3eae-43fd-8d8c-9f9e0b6160a1', 'name': 'ctest-vn-02793926', 'tenant_id': 'a3488419c4114258820cb7122b935416', 'project_id': 'a3488419c4114258820cb7122b935416', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19217275', 'ctest-vn-02793926'], 'port_security_enabled': True, 'description': ''}}
2025-02-19 18:06:05,660 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcca8e59-3dbd-41dd-9650-7da7e3697c99', 'name': '', 'tenant_id': 'a3488419c4114258820cb7122b935416', 'network_id': 'd0483b15-3eae-43fd-8d8c-9f9e0b6160a1', 'ip_version': 4, 'cidr': '221.75.251.128/26', 'allocation_pools': [{'start': '221.75.251.130', 'end': '221.75.251.190'}], 'gateway_ip': '221.75.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.75.251.130', 'tags': [], 'project_id': 'a3488419c4114258820cb7122b935416'}}
2025-02-19 18:06:05,682 - INFO - Created VN ctest-vn-02793926
2025-02-19 18:06:05,736 - DEBUG - VN ctest-vn-02793926 UUID is d0483b15-3eae-43fd-8d8c-9f9e0b6160a1
2025-02-19 18:06:06,053 - DEBUG - Response for create_network : {'network': {'id': 'db01c706-774b-4ae6-ab02-35e21b207cc9', 'name': 'ctest-vn-82042015', 'tenant_id': 'a3488419c4114258820cb7122b935416', 'project_id': 'a3488419c4114258820cb7122b935416', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19217275', 'ctest-vn-82042015'], 'port_security_enabled': True, 'description': ''}}
2025-02-19 18:06:06,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '294d3755-c784-4291-927e-aec56b3a754f', 'name': '', 'tenant_id': 'a3488419c4114258820cb7122b935416', 'network_id': 'db01c706-774b-4ae6-ab02-35e21b207cc9', 'ip_version': 4, 'cidr': '111.159.150.128/26', 'allocation_pools': [{'start': '111.159.150.130', 'end': '111.159.150.190'}], 'gateway_ip': '111.159.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.159.150.130', 'tags': [], 'project_id': 'a3488419c4114258820cb7122b935416'}}
2025-02-19 18:06:06,272 - INFO - Created VN ctest-vn-82042015
2025-02-19 18:06:06,328 - DEBUG - VN ctest-vn-82042015 UUID is db01c706-774b-4ae6-ab02-35e21b207cc9
2025-02-19 18:06:06,452 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-02793926, 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-19217275:ctest-vn-82042015, 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-19 18:06:06,766 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0483b15-3eae-43fd-8d8c-9f9e0b6160a1', 'name': 'ctest-vn-02793926', 'tenant_id': 'a3488419c4114258820cb7122b935416', 'project_id': 'a3488419c4114258820cb7122b935416', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcca8e59-3dbd-41dd-9650-7da7e3697c99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19217275', 'ctest-vn-02793926'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19217275', 'ctest-policy-allow-all-65714278']], 'subnet_ipam': [{'subnet_cidr': '221.75.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-19 18:06:07,026 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db01c706-774b-4ae6-ab02-35e21b207cc9', 'name': 'ctest-vn-82042015', 'tenant_id': 'a3488419c4114258820cb7122b935416', 'project_id': 'a3488419c4114258820cb7122b935416', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['294d3755-c784-4291-927e-aec56b3a754f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19217275', 'ctest-vn-82042015'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19217275', 'ctest-policy-allow-all-65714278']], 'subnet_ipam': [{'subnet_cidr': '111.159.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-19 18:06:07,196 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-19 18:06:07,508 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-19 18:06:07,537 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a8f40224-9949-4dee-942f-a46148fef065
2025-02-19 18:06:07,555 - DEBUG - Requesting: http://10.0.0.35:8082/project/a3488419-c411-4258-820c-b7122b935416
2025-02-19 18:06:07,631 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/d0483b15-3eae-43fd-8d8c-9f9e0b6160a1
2025-02-19 18:06:07,643 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/d0483b15-3eae-43fd-8d8c-9f9e0b6160a1
2025-02-19 18:06:07,654 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ab77b80d-9545-46e3-9d7a-fb2862c27cc6
2025-02-19 18:06:07,661 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ab77b80d-9545-46e3-9d7a-fb2862c27cc6
2025-02-19 18:06:07,669 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/ef5c1499-4878-4244-861c-eb758da864ca
2025-02-19 18:06:07,676 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-19 18:06:07,677 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/d0483b15-3eae-43fd-8d8c-9f9e0b6160a1
2025-02-19 18:06:07,688 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ab77b80d-9545-46e3-9d7a-fb2862c27cc6
2025-02-19 18:06:07,704 - INFO - Verified VN network id 8 for VN d0483b15-3eae-43fd-8d8c-9f9e0b6160a1
2025-02-19 18:06:07,704 - INFO - Verifications in API Server for VN ctest-vn-02793926 passed
2025-02-19 18:06:07,704 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/d0483b15-3eae-43fd-8d8c-9f9e0b6160a1
2025-02-19 18:06:07,716 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ab77b80d-9545-46e3-9d7a-fb2862c27cc6
2025-02-19 18:06:07,724 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ab77b80d-9545-46e3-9d7a-fb2862c27cc6
2025-02-19 18:06:07,732 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/ef5c1499-4878-4244-861c-eb758da864ca
2025-02-19 18:06:07,745 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-02793926', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19217275', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15008310720644137981', 'uuid-lslong': '10199702757231911073'}, 'enable': 'true', 'created': '2025-02-19T18:06:05', 'last-modified': '2025-02-19T18:06:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999922'}
2025-02-19 18:06:07,752 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-19 18:06:07,752 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02793926 passed
2025-02-19 18:06:07,752 - DEBUG - ====Verifying policy data for ctest-vn-02793926 in API_Server ======
2025-02-19 18:06:07,752 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-19 18:06:07,759 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a8f40224-9949-4dee-942f-a46148fef065
2025-02-19 18:06:07,773 - DEBUG - Requesting: http://10.0.0.35:8082/project/a3488419-c411-4258-820c-b7122b935416
2025-02-19 18:06:07,855 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/d0483b15-3eae-43fd-8d8c-9f9e0b6160a1
2025-02-19 18:06:07,867 - DEBUG - ==>Verifying data for policy with id: ea49db0e-f24e-4b1e-8037-458247e8fa1c, fqn: ['default-domain', 'ctest-TestBasicPolicy-19217275', 'ctest-policy-allow-all-65714278']
2025-02-19 18:06:07,867 - INFO - VN ctest-vn-02793926 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-19 18:06:07,867 - DEBUG - Verifying the vn in opserver
2025-02-19 18:06:07,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-02793926 virtual network link through opserver 10.0.0.35
2025-02-19 18:06:07,867 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-19 18:06:08,164 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-19 18:06:08,234 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-02793926', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-02793926?flat'}
2025-02-19 18:06:08,234 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-02793926 is found in opserver
2025-02-19 18:06:08,247 - DEBUG - Do not have enough data to verify VN in agent
2025-02-19 18:06:08,254 - DEBUG - VRF ids for VN ctest-vn-02793926: {}
2025-02-19 18:06:08,254 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-19 18:06:08,263 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a8f40224-9949-4dee-942f-a46148fef065
2025-02-19 18:06:08,280 - DEBUG - Requesting: http://10.0.0.35:8082/project/a3488419-c411-4258-820c-b7122b935416
2025-02-19 18:06:08,360 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/db01c706-774b-4ae6-ab02-35e21b207cc9
2025-02-19 18:06:08,373 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/db01c706-774b-4ae6-ab02-35e21b207cc9
2025-02-19 18:06:08,384 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/34c32f3a-d416-44fb-94ad-5240f203c46c
2025-02-19 18:06:08,393 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/34c32f3a-d416-44fb-94ad-5240f203c46c
2025-02-19 18:06:08,402 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/8ef7fea5-5110-4c2f-b60b-4118e22bba40
2025-02-19 18:06:08,410 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-19 18:06:08,410 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/db01c706-774b-4ae6-ab02-35e21b207cc9
2025-02-19 18:06:08,421 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/34c32f3a-d416-44fb-94ad-5240f203c46c
2025-02-19 18:06:08,437 - INFO - Verified VN network id 9 for VN db01c706-774b-4ae6-ab02-35e21b207cc9
2025-02-19 18:06:08,437 - INFO - Verifications in API Server for VN ctest-vn-82042015 passed
2025-02-19 18:06:08,437 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/db01c706-774b-4ae6-ab02-35e21b207cc9
2025-02-19 18:06:08,452 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/34c32f3a-d416-44fb-94ad-5240f203c46c
2025-02-19 18:06:08,460 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/34c32f3a-d416-44fb-94ad-5240f203c46c
2025-02-19 18:06:08,468 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/8ef7fea5-5110-4c2f-b60b-4118e22bba40
2025-02-19 18:06:08,485 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-82042015', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19217275', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15781113399868082918', 'uuid-lslong': '12322470775673093321'}, 'enable': 'true', 'created': '2025-02-19T18:06:06', 'last-modified': '2025-02-19T18:06:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494018'}
2025-02-19 18:06:08,492 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-19 18:06:08,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82042015 passed
2025-02-19 18:06:08,493 - DEBUG - ====Verifying policy data for ctest-vn-82042015 in API_Server ======
2025-02-19 18:06:08,493 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-19 18:06:08,499 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a8f40224-9949-4dee-942f-a46148fef065
2025-02-19 18:06:08,512 - DEBUG - Requesting: http://10.0.0.35:8082/project/a3488419-c411-4258-820c-b7122b935416
2025-02-19 18:06:08,594 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/db01c706-774b-4ae6-ab02-35e21b207cc9
2025-02-19 18:06:08,605 - DEBUG - ==>Verifying data for policy with id: ea49db0e-f24e-4b1e-8037-458247e8fa1c, fqn: ['default-domain', 'ctest-TestBasicPolicy-19217275', 'ctest-policy-allow-all-65714278']
2025-02-19 18:06:08,605 - INFO - VN ctest-vn-82042015 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-19 18:06:08,605 - DEBUG - Verifying the vn in opserver
2025-02-19 18:06:08,605 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-82042015 virtual network link through opserver 10.0.0.35
2025-02-19 18:06:08,605 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-19 18:06:08,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-82042015', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-82042015?flat'}
2025-02-19 18:06:08,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19217275:ctest-vn-82042015 is found in opserver
2025-02-19 18:06:08,631 - DEBUG - Do not have enough data to verify VN in agent
2025-02-19 18:06:08,636 - DEBUG - VRF ids for VN ctest-vn-82042015: {}
2025-02-19 18:06:08,698 - DEBUG - Services list from nova: [