2025-02-10 02:27:11,632 - INFO - Domain Default found not creating
2025-02-10 02:27:11,789 - INFO - Project ctest-TestBasicPolicy-53466481 not found, creating it
2025-02-10 02:27:12,231 - INFO - Created Project:ctest-TestBasicPolicy-53466481, ID : 1565f79f-30d9-4fdb-a254-08273a996232
2025-02-10 02:27:13,802 - INFO - ================================================================================
2025-02-10 02:27:13,802 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-10 02:27:13,802 - 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-10 02:27:14,061 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.26': '0'}} with
2025-02-10 02:27:14,061 - INFO - Initial checks done. Running the testcase now
2025-02-10 02:27:14,061 - INFO -
2025-02-10 02:27:14,641 - DEBUG - Response for create_network : {'network': {'id': '2332a3a0-a0be-48ba-9e94-92aa4587bb5a', 'name': 'ctest-vn-41345391', 'tenant_id': '1565f79f30d94fdba25408273a996232', 'project_id': '1565f79f30d94fdba25408273a996232', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53466481', 'ctest-vn-41345391'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:27:14,858 - DEBUG - Response for create_subnet : {'subnet': {'id': '65dd2965-f3dd-4708-be74-b8fd6522ff17', 'name': '', 'tenant_id': '1565f79f30d94fdba25408273a996232', 'network_id': '2332a3a0-a0be-48ba-9e94-92aa4587bb5a', 'ip_version': 4, 'cidr': '92.249.69.64/26', 'allocation_pools': [{'start': '92.249.69.66', 'end': '92.249.69.126'}], 'gateway_ip': '92.249.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.249.69.66', 'tags': [], 'project_id': '1565f79f30d94fdba25408273a996232'}}
2025-02-10 02:27:14,877 - INFO - Created VN ctest-vn-41345391
2025-02-10 02:27:14,929 - DEBUG - VN ctest-vn-41345391 UUID is 2332a3a0-a0be-48ba-9e94-92aa4587bb5a
2025-02-10 02:27:15,212 - DEBUG - Response for create_network : {'network': {'id': '9857eb23-51f5-4996-adc5-5a95fed65008', 'name': 'ctest-vn-86026925', 'tenant_id': '1565f79f30d94fdba25408273a996232', 'project_id': '1565f79f30d94fdba25408273a996232', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53466481', 'ctest-vn-86026925'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:27:15,415 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b9a74ab-ef47-4c71-87ad-4ea5dd09c142', 'name': '', 'tenant_id': '1565f79f30d94fdba25408273a996232', 'network_id': '9857eb23-51f5-4996-adc5-5a95fed65008', 'ip_version': 4, 'cidr': '142.7.87.128/26', 'allocation_pools': [{'start': '142.7.87.130', 'end': '142.7.87.190'}], 'gateway_ip': '142.7.87.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.7.87.130', 'tags': [], 'project_id': '1565f79f30d94fdba25408273a996232'}}
2025-02-10 02:27:15,437 - INFO - Created VN ctest-vn-86026925
2025-02-10 02:27:15,489 - DEBUG - VN ctest-vn-86026925 UUID is 9857eb23-51f5-4996-adc5-5a95fed65008
2025-02-10 02:27:15,607 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-41345391, 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-53466481:ctest-vn-86026925, 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-10 02:27:15,891 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2332a3a0-a0be-48ba-9e94-92aa4587bb5a', 'name': 'ctest-vn-41345391', 'tenant_id': '1565f79f30d94fdba25408273a996232', 'project_id': '1565f79f30d94fdba25408273a996232', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65dd2965-f3dd-4708-be74-b8fd6522ff17'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53466481', 'ctest-vn-41345391'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53466481', 'ctest-policy-allow-all-57407698']], 'subnet_ipam': [{'subnet_cidr': '92.249.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:27:16,177 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9857eb23-51f5-4996-adc5-5a95fed65008', 'name': 'ctest-vn-86026925', 'tenant_id': '1565f79f30d94fdba25408273a996232', 'project_id': '1565f79f30d94fdba25408273a996232', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b9a74ab-ef47-4c71-87ad-4ea5dd09c142'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53466481', 'ctest-vn-86026925'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53466481', 'ctest-policy-allow-all-57407698']], 'subnet_ipam': [{'subnet_cidr': '142.7.87.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 02:27:16,321 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-10 02:27:16,658 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-10 02:27:16,688 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c4dd5c68-d5da-49c0-924b-23d2c79a903e
2025-02-10 02:27:16,703 - DEBUG - Requesting: http://10.0.0.49:8082/project/1565f79f-30d9-4fdb-a254-08273a996232
2025-02-10 02:27:16,774 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2332a3a0-a0be-48ba-9e94-92aa4587bb5a
2025-02-10 02:27:16,783 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2332a3a0-a0be-48ba-9e94-92aa4587bb5a
2025-02-10 02:27:16,791 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2f704b05-4431-4b95-9747-07ef6e5fb29a
2025-02-10 02:27:16,798 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2f704b05-4431-4b95-9747-07ef6e5fb29a
2025-02-10 02:27:16,805 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c10704fc-35b4-4978-9c2a-a179fe40ef6f
2025-02-10 02:27:16,811 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 02:27:16,811 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2332a3a0-a0be-48ba-9e94-92aa4587bb5a
2025-02-10 02:27:16,818 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2f704b05-4431-4b95-9747-07ef6e5fb29a
2025-02-10 02:27:16,829 - INFO - Verified VN network id 8 for VN 2332a3a0-a0be-48ba-9e94-92aa4587bb5a
2025-02-10 02:27:16,829 - INFO - Verifications in API Server for VN ctest-vn-41345391 passed
2025-02-10 02:27:16,829 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2332a3a0-a0be-48ba-9e94-92aa4587bb5a
2025-02-10 02:27:16,839 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2f704b05-4431-4b95-9747-07ef6e5fb29a
2025-02-10 02:27:16,844 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/2f704b05-4431-4b95-9747-07ef6e5fb29a
2025-02-10 02:27:16,850 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c10704fc-35b4-4978-9c2a-a179fe40ef6f
2025-02-10 02:27:16,862 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-41345391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53466481', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2536269450449930426', 'uuid-lslong': '11426919414554409818'}, 'enable': 'true', 'created': '2025-02-10T02:27:14', 'last-modified': '2025-02-10T02:27:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991408'}
2025-02-10 02:27:16,869 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 02:27:16,869 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41345391 passed
2025-02-10 02:27:16,870 - DEBUG - ====Verifying policy data for ctest-vn-41345391 in API_Server ======
2025-02-10 02:27:16,870 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-10 02:27:16,875 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c4dd5c68-d5da-49c0-924b-23d2c79a903e
2025-02-10 02:27:16,886 - DEBUG - Requesting: http://10.0.0.49:8082/project/1565f79f-30d9-4fdb-a254-08273a996232
2025-02-10 02:27:16,953 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2332a3a0-a0be-48ba-9e94-92aa4587bb5a
2025-02-10 02:27:16,962 - DEBUG - ==>Verifying data for policy with id: 5966dc26-846e-43a4-99f3-d305d491bbbc, fqn: ['default-domain', 'ctest-TestBasicPolicy-53466481', 'ctest-policy-allow-all-57407698']
2025-02-10 02:27:16,962 - INFO - VN ctest-vn-41345391 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 02:27:16,962 - DEBUG - Verifying the vn in opserver
2025-02-10 02:27:16,962 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-41345391 virtual network link through opserver 10.0.0.49
2025-02-10 02:27:16,963 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-02-10 02:27:17,295 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-02-10 02:27:17,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-41345391', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-41345391?flat'}
2025-02-10 02:27:17,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-41345391 is found in opserver
2025-02-10 02:27:17,369 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 02:27:17,375 - DEBUG - VRF ids for VN ctest-vn-41345391: {}
2025-02-10 02:27:17,375 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-10 02:27:17,381 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c4dd5c68-d5da-49c0-924b-23d2c79a903e
2025-02-10 02:27:17,393 - DEBUG - Requesting: http://10.0.0.49:8082/project/1565f79f-30d9-4fdb-a254-08273a996232
2025-02-10 02:27:17,464 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9857eb23-51f5-4996-adc5-5a95fed65008
2025-02-10 02:27:17,477 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9857eb23-51f5-4996-adc5-5a95fed65008
2025-02-10 02:27:17,487 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/28c2c0db-04b3-4ff4-ac49-cd2a994de2ba
2025-02-10 02:27:17,495 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/28c2c0db-04b3-4ff4-ac49-cd2a994de2ba
2025-02-10 02:27:17,502 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1745612e-1edb-4865-9582-7e3828234d49
2025-02-10 02:27:17,509 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-10 02:27:17,509 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9857eb23-51f5-4996-adc5-5a95fed65008
2025-02-10 02:27:17,517 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/28c2c0db-04b3-4ff4-ac49-cd2a994de2ba
2025-02-10 02:27:17,530 - INFO - Verified VN network id 9 for VN 9857eb23-51f5-4996-adc5-5a95fed65008
2025-02-10 02:27:17,530 - INFO - Verifications in API Server for VN ctest-vn-86026925 passed
2025-02-10 02:27:17,530 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9857eb23-51f5-4996-adc5-5a95fed65008
2025-02-10 02:27:17,539 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/28c2c0db-04b3-4ff4-ac49-cd2a994de2ba
2025-02-10 02:27:17,546 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/28c2c0db-04b3-4ff4-ac49-cd2a994de2ba
2025-02-10 02:27:17,553 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1745612e-1edb-4865-9582-7e3828234d49
2025-02-10 02:27:17,566 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-86026925', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53466481', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10977501153670285718', 'uuid-lslong': '12521513939245617160'}, 'enable': 'true', 'created': '2025-02-10T02:27:15', 'last-modified': '2025-02-10T02:27:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464248'}
2025-02-10 02:27:17,573 - DEBUG - Route Targets: ['target:64512:8000006']
2025-02-10 02:27:17,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86026925 passed
2025-02-10 02:27:17,573 - DEBUG - ====Verifying policy data for ctest-vn-86026925 in API_Server ======
2025-02-10 02:27:17,573 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-02-10 02:27:17,579 - DEBUG - Requesting: http://10.0.0.49:8082/domain/c4dd5c68-d5da-49c0-924b-23d2c79a903e
2025-02-10 02:27:17,590 - DEBUG - Requesting: http://10.0.0.49:8082/project/1565f79f-30d9-4fdb-a254-08273a996232
2025-02-10 02:27:17,662 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9857eb23-51f5-4996-adc5-5a95fed65008
2025-02-10 02:27:17,671 - DEBUG - ==>Verifying data for policy with id: 5966dc26-846e-43a4-99f3-d305d491bbbc, fqn: ['default-domain', 'ctest-TestBasicPolicy-53466481', 'ctest-policy-allow-all-57407698']
2025-02-10 02:27:17,671 - INFO - VN ctest-vn-86026925 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 02:27:17,671 - DEBUG - Verifying the vn in opserver
2025-02-10 02:27:17,671 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-86026925 virtual network link through opserver 10.0.0.49
2025-02-10 02:27:17,671 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-02-10 02:27:17,683 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-86026925', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-86026925?flat'}
2025-02-10 02:27:17,683 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53466481:ctest-vn-86026925 is found in opserver
2025-02-10 02:27:17,695 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 02:27:17,701 - DEBUG - VRF ids for VN ctest-vn-86026925: {}
2025-02-10 02:27:17,758 - DEBUG - Services list from nova: [