2024-10-22 09:54:19,989 - INFO - Domain Default found not creating
2024-10-22 09:54:20,154 - INFO - Project ctest-TestBasicPolicy-32007047 not found, creating it
2024-10-22 09:54:20,622 - INFO - Created Project:ctest-TestBasicPolicy-32007047, ID : d27899ef-ce7a-4d6b-b05a-2a25bb917fad
2024-10-22 09:54:22,180 - INFO - ================================================================================
2024-10-22 09:54:22,181 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-22 09:54:22,181 - 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
2024-10-22 09:54:22,435 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.5': '0'}} with
2024-10-22 09:54:22,435 - INFO - Initial checks done. Running the testcase now
2024-10-22 09:54:22,435 - INFO -
2024-10-22 09:54:23,393 - DEBUG - Response for create_network : {'network': {'id': 'b87328c6-2ed3-4b00-a2c3-04ba4698d080', 'name': 'ctest-vn-57519322', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-vn-57519322'], 'port_security_enabled': True, 'description': ''}}
2024-10-22 09:54:23,587 - DEBUG - Response for create_subnet : {'subnet': {'id': '46f05916-b312-4685-ba77-cc0149047aef', 'name': '', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'network_id': 'b87328c6-2ed3-4b00-a2c3-04ba4698d080', 'ip_version': 4, 'cidr': '99.175.148.192/26', 'allocation_pools': [{'start': '99.175.148.194', 'end': '99.175.148.254'}], 'gateway_ip': '99.175.148.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.175.148.194', 'tags': [], 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad'}}
2024-10-22 09:54:23,607 - INFO - Created VN ctest-vn-57519322
2024-10-22 09:54:23,664 - DEBUG - VN ctest-vn-57519322 UUID is b87328c6-2ed3-4b00-a2c3-04ba4698d080
2024-10-22 09:54:23,990 - DEBUG - Response for create_network : {'network': {'id': 'fa435de0-5b0d-4cf2-a178-b373364954ef', 'name': 'ctest-vn-54096689', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-vn-54096689'], 'port_security_enabled': True, 'description': ''}}
2024-10-22 09:54:24,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b1ca2d6-4ec2-4566-9fac-f8e97a827efe', 'name': '', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'network_id': 'fa435de0-5b0d-4cf2-a178-b373364954ef', 'ip_version': 4, 'cidr': '11.37.139.64/26', 'allocation_pools': [{'start': '11.37.139.66', 'end': '11.37.139.126'}], 'gateway_ip': '11.37.139.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.37.139.66', 'tags': [], 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad'}}
2024-10-22 09:54:24,238 - INFO - Created VN ctest-vn-54096689
2024-10-22 09:54:24,296 - DEBUG - VN ctest-vn-54096689 UUID is fa435de0-5b0d-4cf2-a178-b373364954ef
2024-10-22 09:54:24,415 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322, 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-32007047:ctest-vn-54096689, 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]
2024-10-22 09:54:24,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b87328c6-2ed3-4b00-a2c3-04ba4698d080', 'name': 'ctest-vn-57519322', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46f05916-b312-4685-ba77-cc0149047aef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-vn-57519322'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-policy-allow-all-96285044']], 'subnet_ipam': [{'subnet_cidr': '99.175.148.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-22 09:54:25,042 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa435de0-5b0d-4cf2-a178-b373364954ef', 'name': 'ctest-vn-54096689', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b1ca2d6-4ec2-4566-9fac-f8e97a827efe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-vn-54096689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-policy-allow-all-96285044']], 'subnet_ipam': [{'subnet_cidr': '11.37.139.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-22 09:54:25,197 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-22 09:54:25,502 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-22 09:54:25,538 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976
2024-10-22 09:54:25,553 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad
2024-10-22 09:54:25,647 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080
2024-10-22 09:54:25,663 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080
2024-10-22 09:54:25,678 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12
2024-10-22 09:54:25,686 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12
2024-10-22 09:54:25,695 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2d8632a5-14dd-4d52-8c20-2a3f7be084a6
2024-10-22 09:54:25,703 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-22 09:54:25,703 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080
2024-10-22 09:54:25,717 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12
2024-10-22 09:54:25,738 - INFO - Verified VN network id 8 for VN b87328c6-2ed3-4b00-a2c3-04ba4698d080
2024-10-22 09:54:25,738 - INFO - Verifications in API Server for VN ctest-vn-57519322 passed
2024-10-22 09:54:25,738 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080
2024-10-22 09:54:25,754 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12
2024-10-22 09:54:25,763 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12
2024-10-22 09:54:25,772 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2d8632a5-14dd-4d52-8c20-2a3f7be084a6
2024-10-22 09:54:25,785 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32007047', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13291011756954700544', 'uuid-lslong': '11728223052697751680'}, 'enable': 'true', 'created': '2024-10-22T09:54:23', 'last-modified': '2024-10-22T09:54:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074113'}
2024-10-22 09:54:25,792 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-22 09:54:25,793 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57519322 passed
2024-10-22 09:54:25,793 - DEBUG - ====Verifying policy data for ctest-vn-57519322 in API_Server ======
2024-10-22 09:54:25,793 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-22 09:54:25,799 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976
2024-10-22 09:54:25,812 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad
2024-10-22 09:54:25,901 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080
2024-10-22 09:54:25,915 - DEBUG - ==>Verifying data for policy with id: d06c9493-c8d1-46f4-9dcf-7c9d1975c682, fqn: ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-policy-allow-all-96285044']
2024-10-22 09:54:25,915 - INFO - VN ctest-vn-57519322 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-22 09:54:25,915 - DEBUG - Verifying the vn in opserver
2024-10-22 09:54:25,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322 virtual network link through opserver 10.0.0.27
2024-10-22 09:54:25,915 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-22 09:54:26,222 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-22 09:54:26,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322?flat'}
2024-10-22 09:54:26,287 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322 is found in opserver
2024-10-22 09:54:26,299 - DEBUG - Do not have enough data to verify VN in agent
2024-10-22 09:54:26,305 - DEBUG - VRF ids for VN ctest-vn-57519322: {}
2024-10-22 09:54:26,305 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-22 09:54:26,312 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976
2024-10-22 09:54:26,327 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad
2024-10-22 09:54:26,407 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef
2024-10-22 09:54:26,423 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef
2024-10-22 09:54:26,437 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf
2024-10-22 09:54:26,446 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf
2024-10-22 09:54:26,454 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4a33586a-2190-4be2-b51a-51229dba945f
2024-10-22 09:54:26,462 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-22 09:54:26,462 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef
2024-10-22 09:54:26,478 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf
2024-10-22 09:54:26,500 - INFO - Verified VN network id 9 for VN fa435de0-5b0d-4cf2-a178-b373364954ef
2024-10-22 09:54:26,500 - INFO - Verifications in API Server for VN ctest-vn-54096689 passed
2024-10-22 09:54:26,500 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef
2024-10-22 09:54:26,516 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf
2024-10-22 09:54:26,525 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf
2024-10-22 09:54:26,534 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4a33586a-2190-4be2-b51a-51229dba945f
2024-10-22 09:54:26,547 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32007047', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18033360551103253746', 'uuid-lslong': '11635246944725062895'}, 'enable': 'true', 'created': '2024-10-22T09:54:23', 'last-modified': '2024-10-22T09:54:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.578706'}
2024-10-22 09:54:26,554 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-22 09:54:26,554 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54096689 passed
2024-10-22 09:54:26,554 - DEBUG - ====Verifying policy data for ctest-vn-54096689 in API_Server ======
2024-10-22 09:54:26,554 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-22 09:54:26,560 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976
2024-10-22 09:54:26,573 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad
2024-10-22 09:54:26,655 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef
2024-10-22 09:54:26,669 - DEBUG - ==>Verifying data for policy with id: d06c9493-c8d1-46f4-9dcf-7c9d1975c682, fqn: ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-policy-allow-all-96285044']
2024-10-22 09:54:26,669 - INFO - VN ctest-vn-54096689 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-22 09:54:26,669 - DEBUG - Verifying the vn in opserver
2024-10-22 09:54:26,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689 virtual network link through opserver 10.0.0.27
2024-10-22 09:54:26,669 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-22 09:54:26,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689?flat'}
2024-10-22 09:54:26,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689 is found in opserver
2024-10-22 09:54:26,691 - DEBUG - Do not have enough data to verify VN in agent
2024-10-22 09:54:26,696 - DEBUG - VRF ids for VN ctest-vn-54096689: {}
2024-10-22 09:54:26,750 - DEBUG - Services list from nova: [