2024-11-06 17:58:23,440 - INFO - Domain Default found not creating
2024-11-06 17:58:23,621 - INFO - Project ctest-TestBasicPolicy-38255251 not found, creating it
2024-11-06 17:58:24,158 - INFO - Created Project:ctest-TestBasicPolicy-38255251, ID : 503e4ee0-e231-4d1e-83a2-805155daf1c0
2024-11-06 17:58:25,707 - INFO - ================================================================================
2024-11-06 17:58:25,707 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-06 17:58:25,707 - 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-06 17:58:25,969 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.6': '0'}} with
2024-11-06 17:58:25,969 - INFO - Initial checks done. Running the testcase now
2024-11-06 17:58:25,970 - INFO -
2024-11-06 17:58:26,582 - DEBUG - Response for create_network : {'network': {'id': 'edded095-b2a3-43ae-b22d-5cb5c5990d5e', 'name': 'ctest-vn-28494085', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'project_id': '503e4ee0e2314d1e83a2805155daf1c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-vn-28494085'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 17:58:26,808 - DEBUG - Response for create_subnet : {'subnet': {'id': '27af0178-e454-4bc5-9abf-1ddd398c11c3', 'name': '', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'network_id': 'edded095-b2a3-43ae-b22d-5cb5c5990d5e', 'ip_version': 4, 'cidr': '76.91.78.128/26', 'allocation_pools': [{'start': '76.91.78.130', 'end': '76.91.78.190'}], 'gateway_ip': '76.91.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.91.78.130', 'tags': [], 'project_id': '503e4ee0e2314d1e83a2805155daf1c0'}}
2024-11-06 17:58:26,828 - INFO - Created VN ctest-vn-28494085
2024-11-06 17:58:26,895 - DEBUG - VN ctest-vn-28494085 UUID is edded095-b2a3-43ae-b22d-5cb5c5990d5e
2024-11-06 17:58:27,249 - DEBUG - Response for create_network : {'network': {'id': '0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b', 'name': 'ctest-vn-84264494', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'project_id': '503e4ee0e2314d1e83a2805155daf1c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-vn-84264494'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 17:58:27,409 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff9b7c40-8c6c-4ffd-a9c8-f56b0149c879', 'name': '', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'network_id': '0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b', 'ip_version': 4, 'cidr': '205.118.70.64/26', 'allocation_pools': [{'start': '205.118.70.66', 'end': '205.118.70.126'}], 'gateway_ip': '205.118.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.118.70.66', 'tags': [], 'project_id': '503e4ee0e2314d1e83a2805155daf1c0'}}
2024-11-06 17:58:27,429 - INFO - Created VN ctest-vn-84264494
2024-11-06 17:58:27,487 - DEBUG - VN ctest-vn-84264494 UUID is 0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b
2024-11-06 17:58:27,620 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085, 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-38255251:ctest-vn-84264494, 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-06 17:58:27,964 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'edded095-b2a3-43ae-b22d-5cb5c5990d5e', 'name': 'ctest-vn-28494085', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'project_id': '503e4ee0e2314d1e83a2805155daf1c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27af0178-e454-4bc5-9abf-1ddd398c11c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-vn-28494085'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-policy-allow-all-80228868']], 'subnet_ipam': [{'subnet_cidr': '76.91.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-06 17:58:28,258 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b', 'name': 'ctest-vn-84264494', 'tenant_id': '503e4ee0e2314d1e83a2805155daf1c0', 'project_id': '503e4ee0e2314d1e83a2805155daf1c0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff9b7c40-8c6c-4ffd-a9c8-f56b0149c879'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-vn-84264494'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-policy-allow-all-80228868']], 'subnet_ipam': [{'subnet_cidr': '205.118.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-06 17:58:28,407 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-06 17:58:28,741 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-06 17:58:28,779 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac
2024-11-06 17:58:28,794 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0
2024-11-06 17:58:28,879 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e
2024-11-06 17:58:28,898 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e
2024-11-06 17:58:28,913 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a
2024-11-06 17:58:28,923 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a
2024-11-06 17:58:28,934 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/9d3ce3ba-4e03-4a63-b7a7-c50dc3a0aeea
2024-11-06 17:58:28,944 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-06 17:58:28,944 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e
2024-11-06 17:58:28,963 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a
2024-11-06 17:58:28,986 - INFO - Verified VN network id 8 for VN edded095-b2a3-43ae-b22d-5cb5c5990d5e
2024-11-06 17:58:28,986 - INFO - Verifications in API Server for VN ctest-vn-28494085 passed
2024-11-06 17:58:28,986 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e
2024-11-06 17:58:29,003 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a
2024-11-06 17:58:29,012 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2c97376a-cff7-4796-b6e4-9b80ed93dd9a
2024-11-06 17:58:29,020 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/9d3ce3ba-4e03-4a63-b7a7-c50dc3a0aeea
2024-11-06 17:58:29,033 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38255251', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17140366573184435118', 'uuid-lslong': '12839020048477130078'}, 'enable': 'true', 'created': '2024-11-06T17:58:26', 'last-modified': '2024-11-06T17:58:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.098359'}
2024-11-06 17:58:29,039 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-06 17:58:29,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28494085 passed
2024-11-06 17:58:29,040 - DEBUG - ====Verifying policy data for ctest-vn-28494085 in API_Server ======
2024-11-06 17:58:29,040 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-06 17:58:29,046 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac
2024-11-06 17:58:29,065 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0
2024-11-06 17:58:29,151 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/edded095-b2a3-43ae-b22d-5cb5c5990d5e
2024-11-06 17:58:29,165 - DEBUG - ==>Verifying data for policy with id: 0b444ee0-1a1f-4e7b-b387-bb1de1210f2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-policy-allow-all-80228868']
2024-11-06 17:58:29,166 - INFO - VN ctest-vn-28494085 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-06 17:58:29,166 - DEBUG - Verifying the vn in opserver
2024-11-06 17:58:29,166 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085 virtual network link through opserver 10.0.0.28
2024-11-06 17:58:29,166 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-11-06 17:58:29,467 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-11-06 17:58:29,541 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085?flat'}
2024-11-06 17:58:29,541 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-28494085 is found in opserver
2024-11-06 17:58:29,552 - DEBUG - Do not have enough data to verify VN in agent
2024-11-06 17:58:29,558 - DEBUG - VRF ids for VN ctest-vn-28494085: {}
2024-11-06 17:58:29,558 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-06 17:58:29,563 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac
2024-11-06 17:58:29,580 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0
2024-11-06 17:58:29,664 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b
2024-11-06 17:58:29,680 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b
2024-11-06 17:58:29,694 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc
2024-11-06 17:58:29,703 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc
2024-11-06 17:58:29,714 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/6243778a-afbd-4ff6-84db-200de8fd6581
2024-11-06 17:58:29,721 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-06 17:58:29,721 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b
2024-11-06 17:58:29,735 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc
2024-11-06 17:58:29,758 - INFO - Verified VN network id 9 for VN 0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b
2024-11-06 17:58:29,758 - INFO - Verifications in API Server for VN ctest-vn-84264494 passed
2024-11-06 17:58:29,758 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b
2024-11-06 17:58:29,773 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc
2024-11-06 17:58:29,782 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a1d1abb8-55da-46dc-a4d8-fc8dbf2d2ffc
2024-11-06 17:58:29,789 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/6243778a-afbd-4ff6-84db-200de8fd6581
2024-11-06 17:58:29,802 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38255251', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '819132439968696087', 'uuid-lslong': '12231726000912411771'}, 'enable': 'true', 'created': '2024-11-06T17:58:27', 'last-modified': '2024-11-06T17:58:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.617416'}
2024-11-06 17:58:29,808 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-06 17:58:29,808 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84264494 passed
2024-11-06 17:58:29,809 - DEBUG - ====Verifying policy data for ctest-vn-84264494 in API_Server ======
2024-11-06 17:58:29,809 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-11-06 17:58:29,815 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2ffe236a-e5ae-4c48-8709-39118676b8ac
2024-11-06 17:58:29,833 - DEBUG - Requesting: http://10.0.0.28:8082/project/503e4ee0-e231-4d1e-83a2-805155daf1c0
2024-11-06 17:58:29,909 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0b5e249d-3c55-4717-a9bf-d1fdca4b2c7b
2024-11-06 17:58:29,923 - DEBUG - ==>Verifying data for policy with id: 0b444ee0-1a1f-4e7b-b387-bb1de1210f2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-38255251', 'ctest-policy-allow-all-80228868']
2024-11-06 17:58:29,923 - INFO - VN ctest-vn-84264494 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-06 17:58:29,923 - DEBUG - Verifying the vn in opserver
2024-11-06 17:58:29,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494 virtual network link through opserver 10.0.0.28
2024-11-06 17:58:29,923 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-11-06 17:58:29,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494?flat'}
2024-11-06 17:58:29,937 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38255251:ctest-vn-84264494 is found in opserver
2024-11-06 17:58:29,948 - DEBUG - Do not have enough data to verify VN in agent
2024-11-06 17:58:29,954 - DEBUG - VRF ids for VN ctest-vn-84264494: {}
2024-11-06 17:58:30,010 - DEBUG - Services list from nova: [