2024-11-07 16:44:19,664 - INFO - Domain Default found not creating
2024-11-07 16:44:19,866 - INFO - Project ctest-TestBasicPolicy-53642712 not found, creating it
2024-11-07 16:44:20,348 - INFO - Created Project:ctest-TestBasicPolicy-53642712, ID : 0e889fcf-6b7f-45d5-ab30-f368d3521579
2024-11-07 16:44:21,940 - INFO - ================================================================================
2024-11-07 16:44:21,940 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 16:44:21,941 - 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-11-07 16:44:22,199 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.7': '0'}} with
2024-11-07 16:44:22,199 - INFO - Initial checks done. Running the testcase now
2024-11-07 16:44:22,199 - INFO -
2024-11-07 16:44:22,828 - DEBUG - Response for create_network : {'network': {'id': 'e9109402-6fba-4d30-a63d-df8800fc1865', 'name': 'ctest-vn-55397086', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'project_id': '0e889fcf6b7f45d5ab30f368d3521579', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-vn-55397086'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 16:44:23,050 - DEBUG - Response for create_subnet : {'subnet': {'id': '55e56cf2-f7d9-42a8-8bd0-c6bf04a1adf8', 'name': '', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'network_id': 'e9109402-6fba-4d30-a63d-df8800fc1865', 'ip_version': 4, 'cidr': '187.154.80.0/26', 'allocation_pools': [{'start': '187.154.80.2', 'end': '187.154.80.62'}], 'gateway_ip': '187.154.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.154.80.2', 'tags': [], 'project_id': '0e889fcf6b7f45d5ab30f368d3521579'}}
2024-11-07 16:44:23,070 - INFO - Created VN ctest-vn-55397086
2024-11-07 16:44:23,129 - DEBUG - VN ctest-vn-55397086 UUID is e9109402-6fba-4d30-a63d-df8800fc1865
2024-11-07 16:44:23,442 - DEBUG - Response for create_network : {'network': {'id': '0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab', 'name': 'ctest-vn-09175299', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'project_id': '0e889fcf6b7f45d5ab30f368d3521579', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-vn-09175299'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 16:44:23,661 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2a49af8-d622-4c05-84a2-a07d77b19229', 'name': '', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'network_id': '0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab', 'ip_version': 4, 'cidr': '211.218.166.192/26', 'allocation_pools': [{'start': '211.218.166.194', 'end': '211.218.166.254'}], 'gateway_ip': '211.218.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.218.166.194', 'tags': [], 'project_id': '0e889fcf6b7f45d5ab30f368d3521579'}}
2024-11-07 16:44:23,680 - INFO - Created VN ctest-vn-09175299
2024-11-07 16:44:23,737 - DEBUG - VN ctest-vn-09175299 UUID is 0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab
2024-11-07 16:44:23,858 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086, 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-53642712:ctest-vn-09175299, 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-11-07 16:44:24,179 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9109402-6fba-4d30-a63d-df8800fc1865', 'name': 'ctest-vn-55397086', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'project_id': '0e889fcf6b7f45d5ab30f368d3521579', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55e56cf2-f7d9-42a8-8bd0-c6bf04a1adf8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-vn-55397086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-policy-allow-all-23658046']], 'subnet_ipam': [{'subnet_cidr': '187.154.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 16:44:24,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab', 'name': 'ctest-vn-09175299', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'project_id': '0e889fcf6b7f45d5ab30f368d3521579', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2a49af8-d622-4c05-84a2-a07d77b19229'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-vn-09175299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-policy-allow-all-23658046']], 'subnet_ipam': [{'subnet_cidr': '211.218.166.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 16:44:24,637 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-07 16:44:24,944 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-07 16:44:24,975 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c
2024-11-07 16:44:24,989 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579
2024-11-07 16:44:25,071 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865
2024-11-07 16:44:25,089 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865
2024-11-07 16:44:25,105 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a
2024-11-07 16:44:25,117 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a
2024-11-07 16:44:25,126 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ee914ab0-3472-4e1c-be88-f9b7e4ae85ac
2024-11-07 16:44:25,134 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 16:44:25,134 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865
2024-11-07 16:44:25,149 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a
2024-11-07 16:44:25,171 - INFO - Verified VN network id 8 for VN e9109402-6fba-4d30-a63d-df8800fc1865
2024-11-07 16:44:25,171 - INFO - Verifications in API Server for VN ctest-vn-55397086 passed
2024-11-07 16:44:25,171 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865
2024-11-07 16:44:25,185 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a
2024-11-07 16:44:25,194 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a
2024-11-07 16:44:25,204 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ee914ab0-3472-4e1c-be88-f9b7e4ae85ac
2024-11-07 16:44:25,217 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53642712', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16794085748649905456', 'uuid-lslong': '11978976359100455013'}, 'enable': 'true', 'created': '2024-11-07T16:44:22', 'last-modified': '2024-11-07T16:44:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.061367'}
2024-11-07 16:44:25,225 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 16:44:25,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55397086 passed
2024-11-07 16:44:25,225 - DEBUG - ====Verifying policy data for ctest-vn-55397086 in API_Server ======
2024-11-07 16:44:25,225 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-07 16:44:25,232 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c
2024-11-07 16:44:25,245 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579
2024-11-07 16:44:25,322 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865
2024-11-07 16:44:25,336 - DEBUG - ==>Verifying data for policy with id: 316227ad-eabb-4acc-911b-1579e2b519a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-policy-allow-all-23658046']
2024-11-07 16:44:25,336 - INFO - VN ctest-vn-55397086 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 16:44:25,336 - DEBUG - Verifying the vn in opserver
2024-11-07 16:44:25,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086 virtual network link through opserver 10.0.0.41
2024-11-07 16:44:25,336 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-07 16:44:25,638 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-07 16:44:25,707 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086?flat'}
2024-11-07 16:44:25,707 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086 is found in opserver
2024-11-07 16:44:25,719 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 16:44:25,726 - DEBUG - VRF ids for VN ctest-vn-55397086: {}
2024-11-07 16:44:25,726 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-07 16:44:25,733 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c
2024-11-07 16:44:25,747 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579
2024-11-07 16:44:25,834 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab
2024-11-07 16:44:25,850 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab
2024-11-07 16:44:25,864 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91
2024-11-07 16:44:25,873 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91
2024-11-07 16:44:25,881 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2bbfdb00-e615-440c-92ee-d4c7ea790d0f
2024-11-07 16:44:25,888 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 16:44:25,888 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab
2024-11-07 16:44:25,903 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91
2024-11-07 16:44:25,927 - INFO - Verified VN network id 9 for VN 0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab
2024-11-07 16:44:25,927 - INFO - Verifications in API Server for VN ctest-vn-09175299 passed
2024-11-07 16:44:25,927 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab
2024-11-07 16:44:25,942 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91
2024-11-07 16:44:25,951 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91
2024-11-07 16:44:25,961 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2bbfdb00-e615-440c-92ee-d4c7ea790d0f
2024-11-07 16:44:25,975 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53642712', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '533602386809932712', 'uuid-lslong': '11477455811276169387'}, 'enable': 'true', 'created': '2024-11-07T16:44:23', 'last-modified': '2024-11-07T16:44:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.573467'}
2024-11-07 16:44:25,981 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 16:44:25,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09175299 passed
2024-11-07 16:44:25,982 - DEBUG - ====Verifying policy data for ctest-vn-09175299 in API_Server ======
2024-11-07 16:44:25,982 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-07 16:44:25,988 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c
2024-11-07 16:44:26,004 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579
2024-11-07 16:44:26,092 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab
2024-11-07 16:44:26,106 - DEBUG - ==>Verifying data for policy with id: 316227ad-eabb-4acc-911b-1579e2b519a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-policy-allow-all-23658046']
2024-11-07 16:44:26,107 - INFO - VN ctest-vn-09175299 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 16:44:26,107 - DEBUG - Verifying the vn in opserver
2024-11-07 16:44:26,107 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299 virtual network link through opserver 10.0.0.41
2024-11-07 16:44:26,107 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-07 16:44:26,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299?flat'}
2024-11-07 16:44:26,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299 is found in opserver
2024-11-07 16:44:26,130 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 16:44:26,135 - DEBUG - VRF ids for VN ctest-vn-09175299: {}
2024-11-07 16:44:26,191 - DEBUG - Services list from nova: [