2024-09-19 16:57:45,004 - INFO - Domain Default found not creating
2024-09-19 16:57:45,200 - INFO - Project ctest-TestBasicPolicy-17878976 not found, creating it
2024-09-19 16:57:45,741 - INFO - Created Project:ctest-TestBasicPolicy-17878976, ID : bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6
2024-09-19 16:57:47,526 - INFO - ================================================================================
2024-09-19 16:57:47,526 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-19 16:57:47,526 - 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-09-19 16:57:47,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.6': '0'}} with
2024-09-19 16:57:47,781 - INFO - Initial checks done. Running the testcase now
2024-09-19 16:57:47,781 - INFO -
2024-09-19 16:57:48,440 - DEBUG - Response for create_network : {'network': {'id': '5b0c2682-4141-4240-86cd-92fa316fff61', 'name': 'ctest-vn-58898020', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-vn-58898020'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 16:57:48,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '6563369e-8a51-4bdd-b641-463bb73b8bd7', 'name': '', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'network_id': '5b0c2682-4141-4240-86cd-92fa316fff61', 'ip_version': 4, 'cidr': '13.195.44.192/26', 'allocation_pools': [{'start': '13.195.44.194', 'end': '13.195.44.254'}], 'gateway_ip': '13.195.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.195.44.194', 'tags': [], 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6'}}
2024-09-19 16:57:48,649 - INFO - Created VN ctest-vn-58898020
2024-09-19 16:57:48,710 - DEBUG - VN ctest-vn-58898020 UUID is 5b0c2682-4141-4240-86cd-92fa316fff61
2024-09-19 16:57:49,076 - DEBUG - Response for create_network : {'network': {'id': '772e24ec-5a50-4116-95eb-18a5e12d712d', 'name': 'ctest-vn-13808380', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-vn-13808380'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 16:57:49,280 - DEBUG - Response for create_subnet : {'subnet': {'id': '52ff2bac-7d4b-493c-8768-54584acc1772', 'name': '', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'network_id': '772e24ec-5a50-4116-95eb-18a5e12d712d', 'ip_version': 4, 'cidr': '211.156.120.0/26', 'allocation_pools': [{'start': '211.156.120.2', 'end': '211.156.120.62'}], 'gateway_ip': '211.156.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.156.120.2', 'tags': [], 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6'}}
2024-09-19 16:57:49,302 - INFO - Created VN ctest-vn-13808380
2024-09-19 16:57:49,362 - DEBUG - VN ctest-vn-13808380 UUID is 772e24ec-5a50-4116-95eb-18a5e12d712d
2024-09-19 16:57:49,505 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020, 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-17878976:ctest-vn-13808380, 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-09-19 16:57:49,848 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b0c2682-4141-4240-86cd-92fa316fff61', 'name': 'ctest-vn-58898020', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6563369e-8a51-4bdd-b641-463bb73b8bd7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-vn-58898020'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-policy-allow-all-88999654']], 'subnet_ipam': [{'subnet_cidr': '13.195.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 16:57:50,106 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '772e24ec-5a50-4116-95eb-18a5e12d712d', 'name': 'ctest-vn-13808380', 'tenant_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'project_id': 'bbc8b3ab59f842abafb30ff675b6f3f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['52ff2bac-7d4b-493c-8768-54584acc1772'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-vn-13808380'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-policy-allow-all-88999654']], 'subnet_ipam': [{'subnet_cidr': '211.156.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 16:57:50,258 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-19 16:57:50,614 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-19 16:57:50,651 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887
2024-09-19 16:57:50,668 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6
2024-09-19 16:57:50,761 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61
2024-09-19 16:57:50,780 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61
2024-09-19 16:57:50,798 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1
2024-09-19 16:57:50,809 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1
2024-09-19 16:57:50,818 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ef7eb0a7-04e1-4bab-9d39-5eb0e0891ec4
2024-09-19 16:57:50,827 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 16:57:50,827 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61
2024-09-19 16:57:50,847 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1
2024-09-19 16:57:50,872 - INFO - Verified VN network id 9 for VN 5b0c2682-4141-4240-86cd-92fa316fff61
2024-09-19 16:57:50,872 - INFO - Verifications in API Server for VN ctest-vn-58898020 passed
2024-09-19 16:57:50,872 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61
2024-09-19 16:57:50,888 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1
2024-09-19 16:57:50,898 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/9d6bb89e-6afe-4c6a-bb13-53d30b34d2b1
2024-09-19 16:57:50,908 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ef7eb0a7-04e1-4bab-9d39-5eb0e0891ec4
2024-09-19 16:57:50,925 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17878976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6560661098054369856', 'uuid-lslong': '9713581574576930657'}, 'enable': 'true', 'created': '2024-09-19T16:57:48', 'last-modified': '2024-09-19T16:57:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.115979'}
2024-09-19 16:57:50,933 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 16:57:50,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58898020 passed
2024-09-19 16:57:50,933 - DEBUG - ====Verifying policy data for ctest-vn-58898020 in API_Server ======
2024-09-19 16:57:50,933 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-19 16:57:50,940 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887
2024-09-19 16:57:50,956 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6
2024-09-19 16:57:51,043 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5b0c2682-4141-4240-86cd-92fa316fff61
2024-09-19 16:57:51,061 - DEBUG - ==>Verifying data for policy with id: be4fac93-96c9-4671-94c1-a0adfb4e4c26, fqn: ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-policy-allow-all-88999654']
2024-09-19 16:57:51,061 - INFO - VN ctest-vn-58898020 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 16:57:51,061 - DEBUG - Verifying the vn in opserver
2024-09-19 16:57:51,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020 virtual network link through opserver 10.0.0.23
2024-09-19 16:57:51,061 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-19 16:57:51,413 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-19 16:57:51,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020?flat'}
2024-09-19 16:57:51,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-58898020 is found in opserver
2024-09-19 16:57:51,504 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 16:57:51,511 - DEBUG - VRF ids for VN ctest-vn-58898020: {}
2024-09-19 16:57:51,511 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-19 16:57:51,518 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887
2024-09-19 16:57:51,533 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6
2024-09-19 16:57:51,620 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d
2024-09-19 16:57:51,644 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d
2024-09-19 16:57:51,661 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef
2024-09-19 16:57:51,673 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef
2024-09-19 16:57:51,687 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/54f0b0f7-3677-4a16-b03e-e46728254210
2024-09-19 16:57:51,696 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 16:57:51,696 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d
2024-09-19 16:57:51,717 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef
2024-09-19 16:57:51,740 - INFO - Verified VN network id 10 for VN 772e24ec-5a50-4116-95eb-18a5e12d712d
2024-09-19 16:57:51,740 - INFO - Verifications in API Server for VN ctest-vn-13808380 passed
2024-09-19 16:57:51,740 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d
2024-09-19 16:57:51,756 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef
2024-09-19 16:57:51,767 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5d4187c9-118e-403e-a5b2-f7214860c8ef
2024-09-19 16:57:51,777 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/54f0b0f7-3677-4a16-b03e-e46728254210
2024-09-19 16:57:51,793 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17878976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8587842136988205334', 'uuid-lslong': '10802755231904788781'}, 'enable': 'true', 'created': '2024-09-19T16:57:49', 'last-modified': '2024-09-19T16:57:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.717883'}
2024-09-19 16:57:51,801 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 16:57:51,802 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13808380 passed
2024-09-19 16:57:51,802 - DEBUG - ====Verifying policy data for ctest-vn-13808380 in API_Server ======
2024-09-19 16:57:51,802 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-19 16:57:51,809 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65324741-d612-4060-89fc-737531bf6887
2024-09-19 16:57:51,826 - DEBUG - Requesting: http://10.0.0.23:8082/project/bbc8b3ab-59f8-42ab-afb3-0ff675b6f3f6
2024-09-19 16:57:51,922 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/772e24ec-5a50-4116-95eb-18a5e12d712d
2024-09-19 16:57:51,937 - DEBUG - ==>Verifying data for policy with id: be4fac93-96c9-4671-94c1-a0adfb4e4c26, fqn: ['default-domain', 'ctest-TestBasicPolicy-17878976', 'ctest-policy-allow-all-88999654']
2024-09-19 16:57:51,938 - INFO - VN ctest-vn-13808380 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 16:57:51,938 - DEBUG - Verifying the vn in opserver
2024-09-19 16:57:51,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380 virtual network link through opserver 10.0.0.23
2024-09-19 16:57:51,938 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-19 16:57:51,951 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380?flat'}
2024-09-19 16:57:51,951 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17878976:ctest-vn-13808380 is found in opserver
2024-09-19 16:57:51,962 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 16:57:51,968 - DEBUG - VRF ids for VN ctest-vn-13808380: {}
2024-09-19 16:57:52,037 - DEBUG - Services list from nova: [